+ 5
Input() returns string by default. So, you don't need to put str() to convert it a string.
If you want to accept texts only, you may try using isalpha() method with if-else statement.
0
s = "tExT";
u = s.toUpperCase()
d = s.toLowerCase()
in Java Script