get int value of char python

Solutions on MaxInterview for get int value of char python by the best coders in the world

showing results for - "get int value of char python"
July
22 Jun 2016
1# ord(single_digit_char) - ord('0') = single_digit_int
2ord('5') - ord('0') = 5 # 5 is an int
3ord('3') - ord('0') = 3 # 3 is an int