Skip to content
Advertisement

convert to upper case in python

I’m getting syntax errors, can anyone tell me what I am doing wrong

sentence = "Especially in electronic communications, writing in all caps is equivalent to yelling."

result = sentence.upper()
print =(result)

Advertisement

Answer

hey hi you have used “=” sign after print statement that’s why its showing there’s an error. Don’t use the “=” sign.. just use “print(result)”

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement