HIGHEST & LOWEST FIGURES FROM A LIST
This is another shot at developing something random from scratch. It’s a very basic function that pulls the highest and lowest integers from a user provided list. I’m aware that it will have it’s mistakes, structurally, and be a little messy, but… It works. The problem I’m having at the moment is breaking into classes and involving functions. I feel like I;m trying to overcome the wall of learning to learn. Maybe I need to start knocking together more complex structures.
If anyone is out there that is willing to drop a few tips, you are more than welcome.
#Program to locate the highest and smallest integers of user's input. print("Find the highest and lowest figure in your list!\nType PRINT to print the results.") print() number_list = [] #creation of empty list maxLengthList = 20 def list_first_last(): while len(number_list) < maxLengthList: user_list = (input("Enter a number to add to your list: ")) if user_list == "print": int(maxLengthList) #coverting input to integer for max()/low() print("\nHighest number: " + max(number_list) + "\nLowest number: " + min(number_list)) print() number_list.append(user_list) #append (add) inout to number_list list_first_last()













