Answer to Question #307109 in Python for ratul

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().


1
Expert's answer
2022-03-08T16:53:22-0500
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='')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS