Swap Two Variables¶
Write a program that exchanges (swaps) two variables
var1
andvar2
, bothstr
type.To output the values before and after the swap operation, use the
print()
function like so,print('Before:', var1, var2) print('After:', var1, var2)