I wish this help you Essentially, I'm trying to create a main function that can take input, and use that list of input to calculate the median, mode, and mean by using another function. I'm a novice coder (taking my first class) so any help that can point me in the right direction while still helping me learn will be greatly appreciated. , Personal preference, but I would change your if statements to
if 'stop' not in addons:
elif not all(isinstance(number, float) for number in addons):
print("Bad input, try again")
While loop not accepting the break function, classed as syntax error?
I wish did fix the issue. Am in the middle of a project for school and am trying to use a while True loop in order to get a specific answer from an input. I tried the following and IDLE labels break as a syntax error.
RequestTea = input("What tea would you like? English Breakfast, Green Tea or Earl Grey? ").lower()
if RequestTea.lower() not in ('earl grey','english breakfast','green tea'):
print("Not an appropriate choice.")