Python-Programming-Lesson-Notes

Sorting Out References

Python allows you to assign multiple values to multiple variables in one line by separating the variables and values with commas. What does the following program print out?

first, second = 'Grace', 'Hopper'
third, fourth = second, first
print(third, fourth)
Solution Output:
Hopper Grace

Episode 1 Exercise 3