Part 1: Python Basics with REPL
- Execute the following commands to pull “sailor” out of a string:
new_string = “I am a happy sailor.”
new.string.find(“sailor”)
new_string[13:19]
new.string.find(“sailor”) this should be new_string.find(“sailor”)
i hope my typo posts aren’t spammy. as i am going though the course if i notice typos i create a topic. sometimes these minor typos aren’t problematic but if the code block is big and instead of typing i am copy pasting to see what it does, it might throw you off rails for few minutes that’s what happened to me in that bash course haha.