<jupyter_start><jupyter_text>Tuple<jupyter_code>()
type(())
t = 1,3
print(t)
1,2
type((1,2))<jupyter_output><empty_output><jupyter_text>* Checking time for list & tuple operation<jupyter_code>import timeit
li = timeit.timeit(stmt='[1,2,3]',number=1000000)
tu = timeit.timeit(stmt='(1,2,3)',number=1000000)

print("list time ",li)
print("tuple time ",tu)<jupyter_output>list time  0.08501901399722556
tuple time  0.012194160997751169<jupyter_text>* Assignment operation<jupyter_code>( x , y) = ( 3 , 6)
y
x
(4,1,2) == (x,y)
(1,2,3) < (3,4)
('afridi', 'hello') < ('we' , 'lol')
('jones' , 'sally', 'lol') > ('po','pol')
survey2 = (21,"Bangladesh",False)
age , country , knows_python = survey2 

print("age =",age)
print("country =", country)
print("Know ? = ",knows_python)<jupyter_output>age = 21
country = Bangladesh
Know ? =  False
{'fraction_non_alphanumeric': 0.203125, 'fraction_numerical': 0.09495192307692307, 'mean_word_length': 7.247524752475248, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '9051', 'license': 'MIT', 'n_tokens_mistral': 404, 'n_tokens_neox': 360, 'n_words': 66, 'path': 'Allinone py/tuple.ipynb', 'repo_name': 'whoafridi/Python', 'size': '832'}