Skip to content

Commit 1ea9bfe

Browse files
committed
Python tuples
1 parent 7d990ec commit 1ea9bfe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

1-Data-types/4A-tuples/tuples.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""
2+
Python tuples
3+
"""
4+
5+
from typing import Union
6+
7+
UserType = Union[tuple[str, str, int, bool]]
8+
9+
10+
user: UserType = ("Sarmad", "[email protected]", 19, True)
11+
12+
print(user)

0 commit comments

Comments
 (0)