Jump to content

  • Log In with Google      Sign In   
  • Create Account


Python input problems


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 Python#   Members   -  Reputation: 100

Like
0Likes
Like

Posted 03 March 2012 - 10:02 PM

I have a strange problem with Python. When I use the input command, it works on the python shell, but when I use it as an executable, it crashes. Could someone help me with it?

Sponsor:

#2 Álvaro   Crossbones+   -  Reputation: 10828

Like
0Likes
Like

Posted 04 March 2012 - 05:57 AM

Can you post the exact program (hopefully a single line) and the commands you are using to compile it? I haven't seen anything of this sort before, but if I can reproduce your crash, I might be able to help.

#3 Python#   Members   -  Reputation: 100

Like
0Likes
Like

Posted 04 March 2012 - 11:25 AM

input()

I also get this line in the executed file:
Syntax Error: unexpected EOF while parsing.
Then it quickly closes. I'm using Python 3.2.

#4 Álvaro   Crossbones+   -  Reputation: 10828

Like
0Likes
Like

Posted 04 March 2012 - 09:21 PM

I can't reproduce it with that much information.

Wild guess: Perhaps you are missing an end-of-line character?

#5 return0   Members   -  Reputation: 444

Like
0Likes
Like

Posted 05 March 2012 - 04:30 PM

If not using python 3 don't use input().




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS