0

Python “print” function

I’m very new to python and coding in general and I’m confused with why when inputting >>> (4+4) *9 will get you 72, but when inputting >>> print (4+4) *9 will get you 8 and an error message. Can someone explain?

19th May 2020, 9:57 AM
Coul
4 ответов
+ 2
Youre using an interpreter. There are two ways to write code in python. You can write one line at a time in an interpreter. or You can write multiple lines and run them all at once in whats called an IDE. In the interpereter, "print" doesnt need to be used, it automatically concentrates values. You need print in the IDE though
19th May 2020, 10:03 AM
Slick
Slick - avatar
+ 1
Thank you that makes way more sense
19th May 2020, 10:07 AM
Coul
19th May 2020, 10:04 AM
Slick
Slick - avatar