11.07.2015 Views

Python - ACE home page

Python - ACE home page

Python - ACE home page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Parameter Correspondencedef f(a, b, c): print(a, b, c)f(1, 2, 3) => 1 2 3f(b = 1, c = 2, a = 3) => 3 1 2def f(*args): print(args)f(“one argument”) => (‘one argument’)f(1, 2, 3) => (1, 2, 3)def f(**args): print argsf(a=2, b=4, c=8) => {‘a’:2, ‘b’:4, ‘c’:8}Lecture 1236

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!