I’m trying to convert lower case t where ever it occurs to upper case t.
I’m getting an error though. Heres my code.
string1 = 'timbucktwo'
t = 't'
while t.islower in string1:
print(string1, t.isupper())
What should I do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you’re trying to do is fairly simple, and if you step back from the upper/lower-case issue it’s just “replace ‘t’ with ‘T'”. You can do this using: