Question: Suppose s1 = 'ant' s2 = 'bat' s3 = 'cod' Write Python expressions using s1, s2, and s3 and operators + and * that evaluate

Suppose

s1 = 'ant' s2 = 'bat' s3 = 'cod'

Write Python expressions using s1, s2, and s3 and operators + and * that evaluate to:

a) 'ant ant ant ant ant ant ant ant ant ant '

b) 'ant bat ant bat ant bat ant bat ant bat ant bat ant bat

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!