Computer Science, asked by galaxy15, 6 months ago

Program 14:- Write a program to find the difference between the ASCII code of any lower case letter and its corresponding upper case letter.

Answers

Answered by 0RPS0
5

Char1 = 'b'

Char2 = 'B'

print('Letter\tASCII Value')

print(Char1,'\t',ord(Char1))

print(Char2,'\t',ord(Char2))

print(' Difference between ASCII value of two Letters:')

print(ord(Char1),'-',ord(Char2),'-',end=' ')

print(ord(Char1)-ord(Char2))

*Output*

Letter ASCII Value

b 98

B 66

Difference between ASCII Value of two Letters:

98 - 66 = 32

Answered by galaxy19
0

Kerala has the lowest Infant Mortality Rate.

Similar questions