0

difference between "35" and 35

what's the real difference between "35" and 35 when printing output while type conversion

16th Oct 2016, 7:42 PM
Vijay K
Vijay K - avatar
2 Réponses
+ 3
When you print an integer, it is converted to a string.
16th Oct 2016, 8:11 PM
Zen
Zen - avatar
+ 1
"35" is string, where as 35 is integer. While printing a formatted string, integer has to be changed to string or use {} .format()
16th Oct 2016, 9:49 PM
Rohit Kumar