diff --git a/lab-01/r-1.3_scratch.py b/lab-01/r-1.3_scratch.py index 5febcd2..03c4086 100644 --- a/lab-01/r-1.3_scratch.py +++ b/lab-01/r-1.3_scratch.py @@ -4,15 +4,16 @@ Created on Wed Sep 2 22:49:38 2026 @author: joseph -- I got very tired and decided to scrap the whole process I've been chasing. -I will start again soon, scrapping the input loop idea and just focusing on -function itself. +- I figured out the function after some rest. Now I want to sort out an input +method that allows for any number of floats. """ def minmax(*data): ordered = sorted(data) data = (ordered[0], ordered[-1]) print(data) - - -minmax(24, 3, 84.26, -15) \ No newline at end of file + + +user_data = float(input('Enter any amount of numbers, separated by spaces: ')) +list_data = user_data.split() +minmax(list_data) \ No newline at end of file