Python String Exercise Here are the edits you need to make (use your string methods to do so) Each edit is a different line. Each correction is a separate line of code. Capitalize the "H" in Hello (all of them). Lower Case the entire document Upper Case the entire document Change "Robert" to "Bobby" Put periods at the end of every sentence. You will have to do this manually. Split the document at every ".". Turn in the program It should have the 5 statements.
Added by Logan J.
Step 1
```python document = "hello, my name is robert. how are you doing today?" ``` Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 76 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Willis J.
Write a method/function called bigwords() to read the contents from a text file code.txt and count and display the occurrence of words that have 5 or more alphabets in Python 12th class.
Liam H.
Write a function in Python to read lines from a text file "notes.txt" and find and display the occurrence of the word "the". For example, if the content of the file is: "India is the fastest-growing economy. India is looking for more investments around the globe. The whole world is looking at India as a great market. Most of the Indians can foresee the heights that India is capable of reaching." The output should be 5.
K S.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD