Python Forum
trying an online challenge
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
trying an online challenge
#7
In Python v2, input() reads a string and tries to interpret it. For instance an answer of 2+3 to input() will make input() return the int object 3. By contrast, raw_input() returns the entered string, no more, no less, so it would return the str object 2+3.

This behavior of input() is now considered dangerous and not very usable anyway so In Python v3, input() behaves likes v2 raw_input().
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply


Messages In This Thread
trying an online challenge - by tozqo - Jun-12-2017, 11:38 AM
RE: trying an online challenge - by Ofnuts - Jun-12-2017, 12:22 PM
RE: trying an online challenge - by tozqo - Jun-13-2017, 07:32 AM
RE: trying an online challenge - by sparkz_alot - Jun-13-2017, 02:01 PM
RE: trying an online challenge - by tozqo - Jun-14-2017, 07:04 AM
RE: trying an online challenge - by tozqo - Jun-18-2017, 03:34 AM
RE: trying an online challenge - by Ofnuts - Jun-18-2017, 10:19 AM
RE: trying an online challenge - by tozqo - Jun-20-2017, 10:01 AM
RE: trying an online challenge - by Kebap - Jun-21-2017, 07:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Team Chooser Challenge kanchiongspider 3 2,503 Jun-02-2020, 04:02 AM
Last Post: kanchiongspider
  Meal cost challenge Emekadavid 3 3,013 Jun-01-2020, 02:01 PM
Last Post: Emekadavid
  Appending To Files Challenge erfanakbari1 3 3,092 Mar-27-2019, 07:55 AM
Last Post: perfringo
  Problem with a basic if challenge erfanakbari1 2 2,089 Oct-12-2018, 08:04 AM
Last Post: erfanakbari1

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020