Files
learning/python/списки/tuple.py
2022-05-06 00:49:26 +03:00

12 lines
343 B
Python
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#Кортежи можно вводить в круглых скобках, без скобок, или словом tuple
a = (23, 16, 'Hi')
print(a)
a = 24, 17, 'qq'
print(a)
a = tuple ('Hello')
print(a)
#В кортежах нельзя менять отдельные символы. Только выводить
print(a[1])