What is the difference between string and print command in python both are being used to display text as being shown in Tutorial | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between string and print command in python both are being used to display text as being shown in Tutorial

29th Jun 2018, 6:21 PM
Khushi Bhatt
Khushi Bhatt - avatar
2 Answers
+ 6
Hi Khushi Bhatt Strings is a data tpye for text However, the print command is a function which is specifically used as an output method to display to the screen
29th Jun 2018, 6:27 PM
Agent
Agent - avatar
29th Jun 2018, 6:28 PM
LONGTIE👔
LONGTIE👔 - avatar