My notes and examples while switching from Python2 to to Python3.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/python3 |
|
|
|
tuple_variable = tuple(["1","2","3"]) |
|
|
|
print(tuple_variable) |
|
|
|
one, two, three = tuple_variable |
|
|
|
print(one) |
|
print(two) |
|
print(three)
|
|
|