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().
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='')
Comments
Leave a comment