Question: Given the initial statements: S1 = spam S2 = ni! Show python expressions that could construct each of the following results by performing string operations
Given the initial statements:
S1 = spam
S2 = ni!
Show python expressions that could construct each of the following results by performing string operations on S1 and S2.
* The Knights who says, Ni!
* SpamNi!SpamNi!SpamNi!
To create the program(10 points): :
1. Create a module named h02_02.py from the directory hw
2. Record your name, class number, and date of creation using python comment statement.
3. Write the code to implement the required tasks.
Paste code and capture the screen of a result console and paste the image below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
