Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q.5. (8 points) Given that f-'Good Morning!'. For each questions below, briefly explain what each code does: a) f(-7) b) f(0:4) c) f[:3] d) f+

image text in transcribed
Q.5. (8 points) Given that f-'Good Morning!'. For each questions below, briefly explain what each code does: a) f(-7) b) f(0:4) c) f[:3] d) f+ 'friends e) 21 f) f. upper() g) f.find('or) h) f.replace("Good', 'Happy ) 0.6. (12 points) Go to CC Labs through your python course (Or use the Python downloaded in your PC) and test the codes and examples in Questions 1-5 above. Feel free to run/execute the codes as many times as you want. Finally, save the file as a python file, name it Assignment Your FirstName and upload it in D2L folder Assignment 1 before the due date. Notes: For now below are two easy and quick ways to save python files: 1. If you are using Python downloaded in your PC, it can save your file as a python file (extension .py) by default. 2. If you are working on CC Labs, you can Export the Notebook as Executable Script. That way you can easily save your python file to a desired location

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions