Module 1 Quiz, Question 2 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Module 1 Quiz, Question 2

The assignment is not correct itself. Stating "input" before parenthesis indicates you will enter a number but they wrote a word in the next line. To write a word you need to use "raw_input".

21st Oct 2016, 12:13 AM
Filip Polić
Filip Polić - avatar
2 Answers
+ 1
this is python 3 in python 3 there is no raw_input() you have to use input() instead anyway input() on python 3 work as same as raw_input() in python 2 so the question is correct
21st Oct 2016, 6:32 AM
Sunera
Sunera - avatar
0
I knew the syntax is different from Python 2.7 I learned from but I didn't know this. Thanks!
21st Oct 2016, 6:57 AM
Filip Polić
Filip Polić - avatar