We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a43ac9b commit b6f1218Copy full SHA for b6f1218
src/data_types/test_tuples.py
@@ -78,8 +78,11 @@ def test_tuples():
78
# is really just a combination of tuple packing and sequence unpacking.
79
80
# Swapping using tuples.
81
+ # Data can be swapped from one variable to another in python using
82
+ # tuples. This eliminates the need to use a 'temp' variable.
83
first_number = 123
84
second_number = 456
85
first_number, second_number = second_number, first_number
- # Data can be swapped from one variable to another in python using
- # tuples. This eliminates the need to use a 'temp' variable.
86
+
87
+ assert first_number == 456
88
+ assert second_number == 123
0 commit comments