Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 30th, 2012, 04:23 PM
Void134 Void134 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 1 Void134 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 19 sec
Reputation Power: 0
Input Function Error

http://img545,imageshack,us/img545/2923/bdc75e2e03e8441ca126cbf,png

I was using Python Shell and I was using the input function and it comes up with this error. Can someone tell me what went wrong, or perhaps if I am using the wrong version of python?

I currently use Python 3.3.0

The forum will not let me insert images so please replace the commas with periods in the url.

Reply With Quote
  #2  
Old December 30th, 2012, 06:58 PM
Nyktos Nyktos is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 88 Nyktos User rank is Corporal (100 - 500 Reputation Level)Nyktos User rank is Corporal (100 - 500 Reputation Level)Nyktos User rank is Corporal (100 - 500 Reputation Level)Nyktos User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 5 h 29 m 46 sec
Reputation Power: 2
Really would've been better to copypaste from the shell into your post...

Yes, the issue is version. In Python 3, unlike Python 2, the input() function does not automatically evaluate input. If you want an integer, you'll have to call int() or eval() on the input yourself.

Note that even in Python 2, use of the input() function is discouraged in favour of raw_input(), which behaves like the Python 3 input() function.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Input Function Error

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap