M
M
Mavr562021-11-06 15:17:17
Python
Mavr56, 2021-11-06 15:17:17

Question from a mega-teapot on Python. What have I done wrong?

According to this guide, https://www.youtube.com/watch?v=LFCq-mNF96c . Wrote this miracle

message - "Привет мир"
print (message)

And this monster gives an error:
line 1, in <module>
 message - "Привет мир"
NameError: name 'message' is not defined

Why does he give out, but does not identify me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaratPetrov96, 2021-11-06
@Mavr56

Hello!
You didn't see it that way.
You need not a hyphen, but =.

message = "Привет мир"
print(message)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question