
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
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 Articles
- 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?
- How to convert a value to a safe integer using JavaScript?
- Convert a list of multiple integers into a single integer in Python
- How to match a single character in python using Regular Expression?
- How to convert an integer to a hexadecimal string in Python?
- How to convert an integer to a octal string in Python?
- 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
- Convert the value of the specified string to its equivalent Unicode character in C#
- C# Program to convert a Double to an Integer Value

Advertisements