Python Programming - Console Input/Output - Discussion
Discussion Forum : Console Input/Output - General Questions (Q.No. 38)
38.
How can you print the ASCII values of all characters in a string?
Answer: Option
Explanation:
To print the ASCII values of all characters in a string, use a loop to iterate through each character and print its ASCII value using
ord()
.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers