Reverse and Capitalize
Problem to reverse the string and capitalize.
Example-1:
Input : n = "crazy" Output : YZARC
Example-2:
Input : n = "World" Output : DLROW
Solution
n = "crazy" m = n.upper() m = m[::-1] print(m)
Output
YZARC
Problem to reverse the string and capitalize.
Input : n = "crazy" Output : YZARC
Input : n = "World" Output : DLROW
n = "crazy" m = n.upper() m = m[::-1] print(m)
YZARC