raw_input | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

raw_input

i dont understad what is raw_input

9th Sep 2016, 11:37 AM
rachel
4 Answers
+ 2
raw_input is a function to read all input from user as string even if a number given Input will try to cast your input to the proper type. Given an integer it will cast this value as a number, for others to string
9th Sep 2016, 4:55 PM
looyea
+ 2
run but stop when find input instruction
12th Oct 2016, 5:07 AM
Kaziu (Mark K.)
Kaziu (Mark K.) - avatar
+ 1
It has been renamed input() in python 3.x. input() is a function to get input from the user. You can put a string as parameter to print a message before waiting for the input. age = input("Please enter your age.") print("You are " + age + " years old.")
9th Sep 2016, 11:52 AM
Zen
Zen - avatar
0
so the code wouldnt run without the user's answer?
9th Sep 2016, 1:34 PM
rachel