Write a program to accept a name. Then display the ASCII value of each character present
in that name
Answers
Answered by
10
AnswEr :
The built in function input() is used for saving a name.
The code would be :
name = 'what is your name?'
>>> input(name)
what is your name? Karthik
>>> 'Karthik'
Since,the name has been accepted. Now,let's find the ASCII values of each characters in the above string.
- ASCII values of a character is found by using ord().
- For example, ord(Alphabet)
Now,
(Refer to the attachments)
Attachments:
Similar questions
Math,
4 months ago
Social Sciences,
8 months ago
English,
8 months ago
India Languages,
11 months ago
Math,
11 months ago
Geography,
11 months ago