The ASCII values of character

please explain how can i print the ASCII value of any character .

there is a function named ord() that you can use to get the ascii value of the character
just do this
for ex. we need the ascii character of ‘c’
print(ord(‘c’))
if you need for ‘0’
then
print(ord(‘0’))
I hope you understand this. In case you feel any confusion/doubt you can ask again and if you understand this pls mark it as resolved. And also share the feedback and give the ratings.
Thanks :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

does this ord() function is used for this purpose only

yes just put your character into this of whose ascii value you need