+ 5

Str is stands for ??? In python

12th Jun 2017, 6:55 AM
#Happy@777
#Happy@777 - avatar
2 odpowiedzi
+ 7
String e.g. num = 1 numberAsAString = str(num) print(numberAsAString + "!") The numberAsAString variable takes 1 (an integer) and converts it into "1" (a string) In the print, I pass in the number as a string and add an exclamation point to the end of the string. Which outputs: 1!
12th Jun 2017, 7:05 AM
Tim
+ 4
thanks @Tim
12th Jun 2017, 7:07 AM
#Happy@777
#Happy@777 - avatar