Answers for "char python number"

1

get int value of char python

# ord(single_digit_char) - ord('0') = single_digit_int
ord('5') - ord('0') = 5 # 5 is an int
ord('3') - ord('0') = 3 # 3 is an int
Posted by: Guest on June-07-2021
0

char in python

there is no dataype as char in python
Posted by: Guest on March-26-2021

Python Answers by Framework

Browse Popular Code Answers by Language