I have a sample program:

print("Please input a 3-digit number. The tens digit must be at least as 
big") 

number_str = input("as the ones and hundreds digits.\n") 

number_int = int(number_str) 

hundreds_int = number_int // 100 

tens_int = (number_int % 100) // 10 

ones_int = number_int % 10 

first_diff_int = tens_int - ones_int 

second_diff_int = tens_int - hundreds_int 

print("I am a 3-digit number.") 

print("My tens digit is {} more than my ones digit".format(first_diff_int)) 

print("My hundreds digit is {} less than my tens digit.".format(
second_diff_int))


The problem I'm having is that the second line doesn't print anything until 
the user starts typing. Then, it prints an empty line followed by "as the 
ones and hundreds digits", and the input on the next line. Why is this 
happening? It doesn't happen in PyCharm, but the students I'm TA-ing for 
are being taught with Spyder.

-- 
You received this message because you are subscribed to the Google Groups 
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to