

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to convert a single character to its integer value in Python?
Each character is associated with an ASCII value which is a unique number. It is obtained by ord() function.
>>> ord('A') 65 >>> ord('+') 43 >>> ord(' ')
- Related Questions & Answers
- How to convert an integer to a character in Python?
- How to convert an integer to a unicode character in Python?
- How to convert a single character to string in C++?
- How to convert an integer to an ASCII value in Python?
- How to convert float to integer in Python?
- Convert the value of the specified string to its equivalent Unicode character in C#
- Convert a list of multiple integers into a single integer in Python
- C# Program to convert a Double to an Integer Value
- How to access a single value in pandas DataFrame using the integer positions?
- How to access a single value in pandas Series using the integer position?
- Convert Tuple to integer in Python
- How to convert an integer to a hexadecimal string in Python?
- How to convert an integer to a octal string in Python?
- How to match a single character in python using Regular Expression?
- How to convert an integer into a date object in Python?
Advertisements