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