Question: Write the following code and run it: look = 'Look at me!' now='NOW' print(String 1: , look[ :4]) print(String 2: , look[-7 : )) print(String

 Write the following code and run it: look = 'Look at

Write the following code and run it: look = 'Look at me!' now='NOW' print("String 1: , look[ :4]) print("String 2: , look[-7 : )) print(String 3:, look*4) print(String 4: , look[:-1]*2 + now + look[-1]) " Explain how the above four strings are obtained

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!