FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lpython/tests/tuple1.py at main · certik/lpython · GitHub
certik
/
lpython
Public
forked from
lcompilers/lpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
lpython
/
tests
/
tuple1.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (16 loc) · 465 Bytes
Breadcrumbs
lpython
/
tests
/
tuple1.py
Copy path
File metadata and controls
21 lines (16 loc) · 465 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
16
17
18
19
20
21
def
test_Tuple
():
a1
:
tuple
[
i32
,
i32
,
i32
]
a1
=
(
1
,
2
,
3
)
a1
=
(
-
3
,
-
2
,
-
1
)
a2
:
tuple
[
str
,
str
,
str
]
a2
=
(
"a"
,
"b"
,
"c"
)
a3
:
tuple
[
i32
,
i32
,
f32
,
str
]
a3
=
(
-
2
,
-
1
,
0.45
,
"d"
)
a4
:
tuple
[
tuple
[
i32
,
i32
,
i32
],
tuple
[
i32
,
i32
,
i32
]]
a4
=
((
1
,
2
,
3
), (
4
,
5
,
6
))
a5
:
tuple
[
tuple
[
str
,
str
,
f32
],
tuple
[
str
,
i32
,
f32
]]
a5
=
((
"a"
,
"b"
,
3.4
), (
"c"
,
3
,
5.6
))
b0
:
i32
b1
:
i32
b0
=
a1
[
0
]
b0
,
b1
=
a1
[
2
],
a1
[
1
]
Back
|
FazBrowse Home
|
New Git URL