<jupyter_start><jupyter_text>Data Types<jupyter_code>a = 17
b = 19.5
c = a + b
print(c)
type(a)
type(b)
type(c)<jupyter_output><empty_output><jupyter_text>Lists<jupyter_code>x = [1, "pubg", 2, "clash of clans", 3, "mini militia"]
print(x)
x.append(4)
x.append("vice city")
x
x.index("free fire")
y = [19.2, 45.9, 67.34, 12.9]
print(sum(y))
print(len(y))
y.insert(1,54.7)
y
y[1] = 43.6
y
y.remove(43.6)
y
y.pop(1)

y
z = y.copy()
z
z.sort()<jupyter_output><empty_output><jupyter_text>Tuples<jupyter_code>#Tuples are immutable.
#You can change the by converting it into list.

x = (34, 43, 55, 38, "Great")
x
print(x.count("Great"))
#You can't add elements to a tuple.
x.append(1, 42)
x = (3, 2, 1)
y = (2, 1, 4)
print(x+y)<jupyter_output>(3, 2, 1, 2, 1, 4)<jupyter_text>Dictionaries<jupyter_code>Data ={"Name": "<NAME>", "Age": 20, "Place": "Andhra Pradesh"}
Data
#You can use get() method to get a valuse with its key.
print(Data.get("Name"))
print(Data["Name"])
Data["Age"] = 21
Data
print(len(Data))<jupyter_output>3<jupyter_text>Sets<jupyter_code>#Sets are ordered automatically. So, they may not be in the position you made.
#Duplicate elements will be removed.
#Once set is created you cannot change the elements but you can add or update elements.
x = {2, 1, 5, "Ganesh", 2}
x
print(x.pop())
x.add(3)
x.update([6, 8])
#Update() method is used to add more than one element.
x = {1,2,3}
y = {"a","b","c"}
z = x.union(y)
print(z)
x = {1,2,3}
y = {"a","b","c"}
x.update(y)
print(x)
#union() and update() methods exclude duplicate elements.
x = {1,2,3,4}
y = {2,3,5,6}
z = x.intersection(y)
print(z)
x = {1,2,3,4}
y = {2,3}
z = y.issubset(x)
print(z)
x = {1,2,3,4}
y = {2,3}
z = y.issuperset(x)
print(z)
x = {1,2,3,4}
y = {2,3}
z = x.issuperset(y)
print(z)
x = {1,2,3,4}
y = {5,6,7,8}
z = y.isdisjoint(x)
print(z)<jupyter_output>True
{'fraction_non_alphanumeric': 0.20719738276990185, 'fraction_numerical': 0.059432933478735, 'mean_word_length': 5.116666666666666, 'pattern_counts': {'":': 3, '<': 19, '<?xml version=': 0, '>': 19, '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': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '141527', 'license': 'Apache-2.0', 'n_tokens_mistral': 927, 'n_tokens_neox': 869, 'n_words': 227, 'path': 'Gk Day2 Assignment.ipynb', 'repo_name': 'ganesh6582/Letsupgrade-pyhton', 'size': '1840'}