Easy_Flex

Untitled

Feb 29th, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. job_opening = ("Software Engineering", "New York City", 100000)
  2. position, city, salary = job_opening  # assigns software engineering to position, new york to city and 100000 to salary variable
  3.  
  4. address = ("35 Elm Street", "San Francisco", "CA", "94107")
  5. street, *city_and_stste, zip_code = address   # destructure the tuple into street, city_and_state and zip_code variables
Add Comment
Please, Sign In to add comment