Question: Strings in Python are actually objects and contain several methods that can operate on their contents. For example they contain a strip method: > >
Strings in Python are actually objects and contain several methods that can operate on their contents. For example they contain a strip method:
quad abcd
strip
'abcd'
In
strings.py use the replace and upper methods, described in the String Methods Reference to display a string in all uppercase, and with the spaces replaced by underscores:
Enter a string: A string I entered
Uppercase: A STRING I ENTERED
Underscores: AstringIentered
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
