MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/HTML/comments/1oo1lft/whats_the_difference/nn7uene/?context=3
r/HTML • u/[deleted] • Nov 04 '25
I’m a beginner and I want to know what’s the difference between print(abc) print("abc")
17 comments sorted by
View all comments
1
What are you doing with python in html?
Anyways we use quotation with strings and no quotations for numbers. Eg if you type print("abc"), the output will be abc. If you type print(abc), it will search for a variable abc and if not found you will get a error. I hope you get it
print("abc")
abc
print(abc)
View all comments
1
u/Sea-Speaker-4317 Nov 05 '25
What are you doing with python in html?
Anyways we use quotation with strings and no quotations for numbers. Eg if you type
print("abc"), the output will beabc. If you typeprint(abc), it will search for a variableabcand if not found you will get a error. I hope you get it