Learn Before
Concept
ord()
This function is used to convert a character to an integer.
s = ' 4' c = ord(s) print(c)
52
0
0
Updated 2021-07-27
Tags
Python Programming Language
Data Science
ord()
This function is used to convert a character to an integer.
s = ' 4' c = ord(s) print(c)
52
0
0
Tags
Python Programming Language
Data Science