What's the difference between using a string and using the "print" command? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What's the difference between using a string and using the "print" command?

30th Jul 2016, 12:36 AM
Renato
2 Answers
+ 2
While using the command line interface of Python ( when you see the >>>) the print command will style your output by stripping out surrounding quote marks. There is no huge difference on the command line interface really but when you start writing other programs you will tend to use print when you want to output some string.
3rd Aug 2016, 6:17 AM
Rob McBryde
Rob McBryde - avatar
+ 1
Reasonable question Renato and good answer Rob!
9th Aug 2016, 9:33 AM
‎‏‎‏‎Joe
‎‏‎‏‎Joe - avatar