+ 4

Upper Case and Lower Case

For variable I put str but how do I make it so it says it’s not a string https://code.sololearn.com/cw63usZB5fDt/?ref=app

30th Jan 2022, 1:11 AM
Junior
Junior - avatar
2 odpowiedzi
+ 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.
30th Jan 2022, 2:04 AM
Simba
Simba - avatar
0
s = "tExT"; u = s.toUpperCase() d = s.toLowerCase() in Java Script
11th Jun 2022, 12:37 AM
aliz6398suisiTerminatorEmpireBot
aliz6398suisiTerminatorEmpireBot - avatar