E
E
Egor2018-07-18 21:07:21
Python
Egor, 2018-07-18 21:07:21

I don't know what is wrong and how to solve it?

Photo error5b4f81bcd573c002666380.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2018-07-18
@Daijobu

Python2 uses the raw_input function for this purpose :
name = raw_input('What is your name?')

T
Tim, 2018-07-21
@darqsat

You run the script from the second python, and there the print function is implemented differently. Run through
And if you have python 3.6+ then use f string. It allows you to insert variables into lines like this: It is enough to put an f in front of the line, and then mention the code in arcs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question