Question #307109

Write a Python program that takes a String as input from the user, removes the characters at even index and prints the resulting String in uppercase without using the built-in function upper().


Expert's answer

s  = input()
for i in range(0, len(s), 2):
    print(i if 65 <= ord(s[i]) <= 90 else char(ord(s[i]) + 26), end='')
LATEST TUTORIALS
APPROVED BY CLIENTS