<jupyter_start><jupyter_text>List<jupyter_code>thislist = ["apple", "banana", "cherry"]
print(thislist)
#Access Items
thislist = ["apple", "banana", "cherry"]
print(thislist[1])
#Range of Indexes
thislist = ["apple", "banana", "cherry", "orange", "kiwi", "melon", "mango"]
print(thislist[2:5])
#List Length
thislist = ["apple", "banana", "cherry"]
print(len(thislist))
#Remove Item
thislist = ["apple", "banana", "cherry"]
thislist.remove("banana")
print(thislist)<jupyter_output>['apple', 'cherry']<jupyter_text>Dictionary<jupyter_code>thisdict = { "brand": "Ford","model": "Mustang","year": 1964}
print(thisdict)
#Change Values
thisdict = { "brand": "Ford","model": "Mustang","year": 1964}
thisdict["year"] = 2018
print(thisdict)
#Dictionary Lenght
print(len(thisdict))
#Adding Items
thisdict = {"brand": "Ford", "model": "Mustang","year": 1964}
thisdict["color"] = "red"
print(thisdict)
#Copy a Dictionary
thisdict = { "brand": "Ford","model": "Mustang","year": 1964}
mydict = thisdict.copy()
print(mydict)<jupyter_output>{'brand': 'Ford', 'model': 'Mustang', 'year': 1964}<jupyter_text>Set<jupyter_code>thisset = {"apple", "banana", "cherry"}
print(thisset)
#Add Items
thisset = {"apple", "banana", "cherry"}
thisset.add("orange")
print(thisset)
#Length
print(len(thisset))
#Join Two Sets
set1 = {"a", "b" , "c"}
set2 = {1, 2, 3}
set3 = set1.union(set2)
print(set3)<jupyter_output>{'b', 1, 2, 3, 'a', 'c'}<jupyter_text>Tuple<jupyter_code>thistuple = ("apple", "banana", "cherry")
print(thistuple)
#Range of Indexs
thistuple = ("apple", "banana", "cherry", "orange", "kiwi", "melon", "mango")
print(thistuple[2:5])
#Tuple Length
print(len(thistuple))<jupyter_output>7<jupyter_text>String<jupyter_code>a = "Hello"
print(a)
#Slicing
b = "Hello, World!"
print(b[2:5])
#String Length
a = "Hello, World!"
print(len(a))
a = "Hello, World!"
print(a.lower())
a = "Hello, World!"
print(a.split(","))<jupyter_output>['Hello', ' World!']
{'fraction_non_alphanumeric': 0.22291342664593053, 'fraction_numerical': 0.02280974598237429, 'mean_word_length': 8.948453608247423, 'pattern_counts': {'":': 12, '<': 16, '<?xml version=': 0, '>': 16, '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': '627753', 'license': 'Apache-2.0', 'n_tokens_mistral': 815, 'n_tokens_neox': 774, 'n_words': 159, 'path': 'Day2Assignment .ipynb', 'repo_name': 'pranali179/python-letsupgrade-B7', 'size': '1929'}