19 lines
463 B
Python
19 lines
463 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
Created on Wed Sep 2 22:49:38 2026
|
|
|
|
@author: joseph
|
|
- 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)
|
|
|
|
|
|
user_data = input('Enter any amount of numbers, separated by spaces: ')
|
|
list_data = user_data.split()
|
|
minmax(float(list_data)) |