FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PythonForJavaDevs/03 Containers/01 Tuples/tup.py at main · bytecodeman/PythonForJavaDevs · GitHub
bytecodeman
PythonForJavaDevs
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PythonForJavaDevs
/
03 Containers
/
01 Tuples
/
tup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (10 loc) · 323 Bytes
Breadcrumbs
PythonForJavaDevs
/
03 Containers
/
01 Tuples
/
tup.py
Copy path
File metadata and controls
15 lines (10 loc) · 323 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
stuff
=
(
"Charles"
,
7
,
8.2
,
True
,
False
,
"Cats"
)
print
(
stuff
[
2
])
# stuff[2] = "Leaf"
name
,
value1
,
value2
,
bool1
,
bool2
,
animal
=
stuff
print
(
name
,
value1
,
value2
,
bool1
,
bool2
,
animal
)
person
,
number1
,
number2
,
*
other
=
stuff
print
(
person
,
number1
,
number2
,
other
)
print
(
type
(
other
))
animals
=
(
"cat"
,)
print
(
animals
)
Back
|
FazBrowse Home
|
New Git URL