CPSC 203: Introduction to computers  

James Tam

Programming Practice: Understanding variables

 

Modify the following program below so that the values in 'num1' and 'num2' are swapped.

def start (num1, num2):

    print num1, num2

    (* Swap num1 and num2 *)

    print num1, num

 

[Solution]