Platform: Git bash MINGW64, Windows 7, 64 CMD When I run Python code from Learn Python The Hard Way ex11 . The code is simple.
print "How old are you?", age = raw_input() print "How tall are you?", height = raw_input() print "How much do you weigh?", weight = raw_input() print "So, you're %r old, %r tall and %r heavy." % ( age, height, weight)
But they have different results in CMD and Git bash. When I run it using Git bash, raw_print () is started first.
When you enter 3 answers, then at the end 4 seals will be displayed. When I run it in CMD, it shows normally, one output, one raw_input() .
Can someone explain this?
EDIT: Actually, my goal is to explain the reason, and not solve this problem with a flash. So this is different from this question.
source share