Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import statistics
- def main():
- number = input(" Give a positive number or numbers separated by comma! ")
- userList = eval(number)
- minim = str(min(userList))
- maxim = str(max(userList))
- mvalues = statistics.mean(userList)
- print ("You gave " , userList, " max value is " , maxim, "min value is", minim , "mean is" ,mvalues, )
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement