+ 3

Help. Why there’s 48 in the output??

https://code.sololearn.com/cBEwGw5TA8ei/?ref=app

27th Jan 2019, 8:03 PM
Horyah
Horyah  - avatar
5 Respostas
+ 12
int(character) returns the ASCII value of "character". ASCII('0') => 48
27th Jan 2019, 8:08 PM
Diego
Diego - avatar
+ 1
Diego Acero omg thank youuu sooooo much 😭💗
27th Jan 2019, 8:10 PM
Horyah
Horyah  - avatar
+ 1
A zero as a string is just ASCII. When you are casting the variable, you are returning it's ASCII value.
29th Jan 2019, 9:48 PM
CoolGuyPro1001
CoolGuyPro1001 - avatar
0
ASCII Value of '0' = 48
29th Jan 2019, 3:50 AM
Akshay Madrikar
Akshay Madrikar - avatar
0
how
29th Jan 2019, 5:15 PM
Mohamed Ahmed Saad
Mohamed Ahmed Saad - avatar