from output import welcome, more, byebye, summary, invalid, emptylist, close
def food(): global choice x = 1 while x > 0 and x <= 15: try: more() x = int(input("Enter your choice: ")) choice.append(x) except: invalid() else: choice.remove(20) if len(choice) == 0: emptylist() else: choice.sort() print ("This is your selection:",choice) close() print(choice)the code is shown above but I can't do "print(choice)"
Larz60+ write Nov-25-2020, 09:14 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
I added for you this time. Please use bbcode tags on future posts.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
I added for you this time. Please use bbcode tags on future posts.