From 57a45232659ccdbe1107eb79f19c1d7c00e4238a Mon Sep 17 00:00:00 2001 From: baphim <269010393+baphim@users.noreply.github.com> Date: Thu, 3 Sep 2026 22:37:47 -0400 Subject: [PATCH] feat(r-1.3_scratch.py): attempt 1 at formatting input string to float --- lab-01/r-1.3_scratch.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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