- In Class Exercise Rewrite The Following Function And To Return The Max The Min And The First Input Def Q30 Get Yo 1 (39.6 KiB) Viewed 49 times
In class exercise, rewrite the following function and to return the max, the min and the first input: def q30): # get yo
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
In class exercise, rewrite the following function and to return the max, the min and the first input: def q30): # get yo
In class exercise, rewrite the following function and to return the max, the min and the first input: def q30): # get your input currentMax = float(0) newinput = float(0) while newInput >= 0: newInput = float(input()) if newInput > currentMax: currentMax = newinput #output return currentMax