+ 2

Why can’t I use double ā€œ in python?

For e.g print = (ā€œwelcomeā€œ) is not correct

19th Aug 2025, 1:55 PM
Joshil Appavoo
Joshil Appavoo - avatar
6 Answers
+ 7
Carefully check the characters for the double-quotes: "Correct" ā€œWrongā€œ
19th Aug 2025, 3:19 PM
Lisa
Lisa - avatar
+ 5
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.
19th Aug 2025, 2:09 PM
š“œš“²š“µš“Ŗ š“ƒ 
š“œš“²š“µš“Ŗ š“ƒ  - avatar
+ 5
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.
19th Aug 2025, 3:07 PM
Lothar
Lothar - avatar
+ 1
Why can’t I use double ā€œ in python? For e.g print = (ā€œwelcomeā€œ) is not correct print("welcome") This is perfectly correct. Correct way print("welcome") # using double quotes print('welcome') # using single quotes
21st Aug 2025, 2:08 PM
Mayank kumar Verma
Mayank kumar Verma - avatar
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)")
19th Aug 2025, 2:08 PM
š“œš“²š“µš“Ŗ š“ƒ 
š“œš“²š“µš“Ŗ š“ƒ  - avatar