0
Why can’t I use double “ in python?
For e.g print = (“welcome“) is not correct
4 Respuestas
+ 4
Print is a built-in method of Python. Therefore, I do not recommend using the word "print" as a variable or user-defined function name.
+ 1
Joshil Appavoo ,
it looks like that you are in a very early stage of learning python.
> so it is recommended to continue with learning python and doing exercises in this app.
> if you still have issues, you may read the last leesons again to get more familiar with this programming language.
+ 1
Carefully check the characters for the double-quotes:
"Correct"
“Wrong“
0
I don't quite understand what you want to do. If you want to assign a stock value to the print variable, simply wrap the brackets with the text in quotation marks.
print = "(welcome)"
If you want to display "(welcome)" on the screen, then write:
print("(welcome)")