0
What is the difference between string and print() command?
4 Respostas
+ 1
print() is a command and string is a variable. Just google what is variable and what is command.
+ 1
sun print() is a command to display output and in string just like other variables we store value any English or any word or a character
0
String is a type, and Print () is a command
- 1
String is a type in python as in many programming languages. Though there is a "str()" function which is used for type conversion.
But "print()" is a function command used to display output on the screen.