Answer:
The program to this question can be given as:
Program:
# define variable x and assign value #
x1 = 64
#define loop
while x1 >= 64 and x1 <= 89:
x1 =x1+ 1
print(str(chr (x1))+ " ASCII number is = " + str(x1)))
#print value #
Output:
A ASCII number is =65
B ASCII number is =66
C ASCII number is =67
D ASCII number is =68
E ASCII number is =69
F ASCII number is =70
G ASCII number is =71
H ASCII number is =72
I ASCII number is =73
J ASCII number is =74
K ASCII number is =75
L ASCII number is =76
M ASCII number is =77
N ASCII number is =78
O ASCII number is =79
P ASCII number is =80
Q ASCII number is =81
R ASCII number is =82
S ASCII number is =83
T ASCII number is =84
U ASCII number is =85
V ASCII number is =86
W ASCII number is =87
X ASCII number is =88
Y ASCII number is =89
Z ASCII number is =90
Step-by-step explanation:
In the above python program firstly we define a variable that is "x1" in this variable we assign a value that is 64. Then we define a while loop In this loop we increment the value of x1 by 1 and print the alphabet in uppercase and its ASCII number.
For print this output we use the str() function and chr () function. The str() function prints the ASCII number and In the str()function we use chr () function that converts the number into character.