+ 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 Antwoorden
+ 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