python capitalize all words
sample_text = "this is a sample string"
result = sample_text.title() # "This Is A Sample String"
python capitalize all words
sample_text = "this is a sample string"
result = sample_text.title() # "This Is A Sample String"
converting capital letters to lowercase and viceversa in python
s=input()
new_str=""
for i in range (len(s)):
if s[i].isupper():
new_str+=s[i].lower()
elif s[i].islower():
new_str+=s[i].upper()
else:
new_str+=s[i]
print(new_str)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us