change s='hello' to s='Hello'.
Title
Question
cant we reassign s='Hello' or use capatilize fn(s=s.capitalize)?
Python-3.4.3 Getting-started-with-strings 08-09 min 50-60 sec
Answers:
You can take these steps. Out of the two, capitalize is a better answer because you are supposed to convert the string and not reassign. However the tutorial does not cover capitalize and hence that is not provided as an answer.
Login to add comment