0

What's the difference between print and string then

if print and string gives the same results what's the difference in the useage

8th Jul 2019, 10:25 AM
ItsLyodd
ItsLyodd - avatar
2 Answers
+ 2
str is only output automatically when you run Python in interactive mode. If you just write strings in a code and run that, you will see nothing. You have to actually create the output by using print.
8th Jul 2019, 1:24 PM
HonFu
HonFu - avatar
+ 1
Print is a function that prints out a string to the console. Print is a function while String is a series of character.
8th Jul 2019, 11:09 AM
𝐹𝓇𝒶𝓃𝓀𝓎 𝐵𝓇𝒶𝒾𝓃𝐵𝑜𝓍
𝐹𝓇𝒶𝓃𝓀𝓎 𝐵𝓇𝒶𝒾𝓃𝐵𝑜𝓍 - avatar