Skip to content

Commit 6393bf6

Browse files
committed
Tupel: vorhandene Dinge umwandeln
1 parent 0d12ab1 commit 6393bf6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Level_03/tupel.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
Tuple = ("foo", "bar") # type: tuple
1212
print(Tuple)
1313

14+
# man kann auch vorhandene Werte in Tupel umwandeln
15+
print(tuple('foo'))
16+
1417
# Mit einem Index kann auf ein Element zugegriffen
1518
# werden:
1619
print(Tuple[0])

0 commit comments

Comments
 (0)