String Methods in Python Flashcards

1
Q

How to convert string to proper Statement ?

A

Convert string as first letter of string in caps & other are in lowercase.

s = “Abracadabra Hocus Pocus you’re a turtle dove HHHHHHHHZ”
print(s.capitalize())

How well did you know this?
1
Not at all
2
3
4
5
Perfectly