please don't have me give up on brainly.>.>
Write a program with python that uses a loop to print the uppercase alphabet with the correct ASCII number next to each letter. (e.g. one line might be A 65).
So far, the following code makes it go to 50%, and i need at least 90%.
c = A
while (c == Z):
c = c + 1
print ("end")
Answers
Answered by
1
Two ways
1.
a='A'
while a=='Z':
print(a,ord(a))
a+=1
2.
for i in range(65,92):
print(chr(I),i)
williambarnes:
wow! thanks! finally someone doesn't just try to get points
Similar questions
Math,
6 months ago
Accountancy,
6 months ago
Math,
6 months ago
Chemistry,
1 year ago
Business Studies,
1 year ago
English,
1 year ago
Physics,
1 year ago
Math,
1 year ago