Back

Given a string and a number K, change every kth character to uppercase from beginning in string. Sample Testcase : INPUT string 2 OUTPUT sTrInG

Created 2 years ago
647 Views
4 Comments
PrakashFCj7pu
@PrakashFCj7pu
PrakashFCj7pu
@PrakashFCj7puProfile is locked. Login

a=input("")

b=a.split(" ")

c=b[0]

d=b[1]

e=c.upper[::2]

print(e)

Can you correct it for me ?

Comments (4)
Please login to comment.