Question: var 1 = Up var 2 = away print ( % s , up and % s % ( var 1

var1="Up" var2= "away" print("%s, up and %s"%(var1, var2))
TRY IT
Up, up and away
What does thesin%smean?
What happens if you:
Swap the position of var1 and var2?
Remove the s from the %?
Change var1 to 7 and change the first %s to %i?

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 Programming Questions!