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
Get step-by-step solutions from verified subject matter experts
