Yesterday we gave the definition of a variable, and today we will know how to display them in the console in #python. To display a raw text or a variable in the console, the "print" function is used. The rest of the thread👇
1
0
1
Replies
An example to display only a plain text : print("My name is #python") or print('My name is #python') You can use single or double quotes to display plain text.
1
1
0
An example to display a variable age: print(age) age is a variable. We see the quotes have been removed, if we don't remove the quotes then the print function will take it as plain text instead of the variable age, and will not display the value of the age but the text age.
1
1
0