
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
Find ASCII Value of Character using Python
The ord function in python gives the ordinal value of a character(ASCII). You can use this function to find the ascii codes as follows
Example
s = "Hello" for c in s: print(ord(c))
Output
This will give the output
72 101 108 108 111
Advertisements