Answer to Question #97499 in Python for kamara

Question #97499
7.1 Code Practice: Question 3
In the last problem, we get an error if we enter more than one character at a time. Rewrite the program so that it only calls the ord method if a single character is entered.

Sample Run

Enter a character: *
ASCII #42

Enter a character: exit
Not a character
The previous code was
x = input("Enter a character: ")
print ("ASCII #" + str(ord(x)))
1
Expert's answer
2019-10-29T05:43:01-0400
Dear kamara, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS