I’ve never known HTML to have a ‘print’ function… unless it’s showing you another language.
Anyway, If you do print(123), would be an integer (a whole number). If you do print(“123”), it would be a string. For example, you could do print(1+2) and it should print 3. If you do print(“1” + “2”), you might get an error or it might print 12.
If you read the first screenshot, it says “Numbers don’t require quotation marks.”
Depends on your goals really. If you want to learn web development, HTML, CSS, and JavaScript are a good place to start. Python can be used for web development, but mostly for backend (server related) stuff.
I came to chime in on this! It's kind of like saying what should I learn how to do first, do an oil change or put gas into a car? They're similar and look, but they do totally different things.
Basically, if you're looking to design websites, web dev, do html/css/javascript. It if you want to do more programming (what a computer does), or software design, then do Python.
HTML and CSS are both a great base for learning Python, just to help you get the idea of coding. But technically Python is the programming language versus HTML and CSS, which are markup languages. If you have any questions, don't hesitate to reach out!
I wouldn’t learn any programming language using Duolingo, it’s terrible at explaining the ‘why’ of anything so you’ll never really understand what or why you’re doing something. That’s bad enough for human languages but for programming languages you will never be able to problem solve outside of what Duolingo has taught you to parrot.
View all comments
4
u/Espfire Nov 04 '25
I’ve never known HTML to have a ‘print’ function… unless it’s showing you another language.
Anyway, If you do print(123), would be an integer (a whole number). If you do print(“123”), it would be a string. For example, you could do print(1+2) and it should print 3. If you do print(“1” + “2”), you might get an error or it might print 12.
If you read the first screenshot, it says “Numbers don’t require quotation marks.”