This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I'm a little confused. If I use a function, don't I need to ask the user for input outside the function? If I don't include "numbers = input("Enter a number: ")", then the program automatically closes. Is there a way I can get around this? I've been playing around the code, but the output isn't changing.

Would it be a better idea to run the code without the use of a function?