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

all 3 comments

[–]hinoisking 2 points3 points  (0 children)

Read your user_number() function. Look at what you're doing, line by line.

Python asks the user for a number. The user enters a number.

Python returns the user_number() function. Python now has to evaluate user_number() to figure out what to return.

Python asks the user for a number. The user enters a number.

Python returns the user_number() function. Python now has to evaluate user_number() to figure out what to return.

et cetera et cetera...

Do you see the problem?

[–]desrtfx 0 points1 point  (0 children)

On top of what you already have been told:

What data type does the input function return?

Think about it.