<jupyter_start><jupyter_text>Work with default functions of each one of the data type  List & it's Default function<jupyter_code># Extend (This allows you to join two lists together)
a = ["payal", "werulkar"]
print(a)
a.extend(["BE", "Electrical branch"])
print(a)
# Remove (Removes the first item from the list)
a = ["payal", "werulkar"]
print(a)
a.extend(["BE", "Electrical branch"])
print(a)
# Clear (Removes all items from the list)
a = ["payal", "werulkar", "BE", "Electrical branch"]
print(a)
a.clear()
print(a)
# Reverse (Reverses the elements of the list in place.)
a = [5,4,3,2,1]
a.reverse()
print(a)
# MAX (The default argument specifies an object to return if the provided iterable is empty. )
a = ["payal", "werulkar", "BE"]
print(max(a))

a = ["payal", "12", "ant"]
print(max(a))

a = [1, 2, 3, 4, 5]
b = [1, 2, 3, 4]
print(max(a, b))
#min
a = ["payal", "werulkar", "BE"]
print(min(a))

a = ["payal", "12", "ant"]
print(min(a))

a = [1, 2, 3, 4, 5]
b = [1, 2, 3, 4]
print(min(a, b))<jupyter_output>BE
12
[1, 2, 3, 4]<jupyter_text>Dictionary & it's Default function<jupyter_code>#clear()
biodata = {"Name":"Payal", "Age":"22", "Number":"12345"}
print(biodata)
biodata.clear()
print(biodata)
#items()   it is used to display tuple pair
a = {1:1,2:4,3:9,4:16,5:25}
print(a)
print(a.items())
#popitem()  fuction will remove and return an arbitary item
a = {1:1,2:4,3:9,4:16,5:25}
print(a)
print(a.popitem())
print(a)
# keys  it display key vlaue in list
a = {1:1,2:4,3:9,4:16,5:25}
print(a)
print(a.keys())
# values  it dislay list of all vlaues
a = {1:1,2:4,3:9,4:16,5:25}
print(a.values())
# copy
a = {1:1,2:4,3:9,4:16,5:25}
print(a)
print(a.copy())
#update
a = {1:1,2:4,3:9,4:16,5:25}
print(a.update())
#get
a = {1:1,2:4,3:9,4:16,5:25}
print(a.get(5))
#pop
a = {1:1,2:4,3:9,4:16,5:25}
print(a.pop(3))
#setdefault
a = {1:1,2:4,3:9,4:16,5:25}
print(a.setdefault(4))<jupyter_output>16<jupyter_text>Sets and it's default function<jupyter_code>#SETS 
#set is basically consist of unordered elements,unique elements,unindexed elemeny
a={1,4,2,4,'aaa','abc',9,2}
b=set([1,4,3,'abc',87])
print(a)
print(b)
c=set()
print(c)
a={1,4,2,4,'aaa','abc',9,2}
b=set([1,4,3,'abc',87])
print(a)
print(b)
dir(a)  #this are the methods that used it along the set
a={1,4,2,4,'aaa','abc',9,2}
b=set([1,4,3,'abc',87])
print(a)
print(b)
a.add(3)
a
#Update
a.update([3,'xyz',4])
a
# remove()
a.remove('aaa')
a
# discard
a.discard(9)
a
#pop
a.pop()
a
#union   to find the union of a & b
a.union(b)
#pipeline symbol is also a union 
a|b
#intersection
a.intersection(b)
a&b #same as intersection
#difference   produce a new set consisting of element that are present only in one of those set
# we can used '-' symbol for difference
a-b
b-a
a.difference(b)
#frozenset  it is set whose values cannot be modified
b=frozenset(a)
print(b)<jupyter_output>frozenset({'abc', 3, 4, 'xyz'})<jupyter_text>Tuple &  it's default method<jupyter_code>#tuple is collection of heterogeneous python objects
# difference between tuple and list is the only in tuple have curve bracket and in list have square bracket
# list is mutable where tuple is immutable
# tuple may not be used parantheses
city="nagpur",
type(city)
city=("nagpur")
city
city="nagpur","pune","mumbai"
city
#index
city[1]
city[-1]
#nesting
nest=(city)
print(city)
#repeatation
rep=("python", )*7
rep
#slicing
num= (1,2,3,4)
num[1:]<jupyter_output><empty_output><jupyter_text>String & it's default methods<jupyter_code>st = "PAYAL"
st
st.lower()
st.upper()
st.capitalize()
"this is a  string".capitalize()
st.count("L")
st.find("P")
st.rfind("1")
str1 = "    hellow   "
str1
str1.lstrip()
str1.rstrip()
str1 = str1.strip()
str1
st = "12ty"
st.isalpha()
st.isdigit()
st.isupper()
st.isidentifier()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.19388297872340426, 'fraction_numerical': 0.05585106382978723, 'mean_word_length': 5.951940850277264, 'pattern_counts': {'":': 3, '<': 18, '<?xml version=': 0, '>': 18, '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': '188308', 'license': 'Apache-2.0', 'n_tokens_mistral': 1728, 'n_tokens_neox': 1645, 'n_words': 427, 'path': 'DAY 2 - Assignment.ipynb', 'repo_name': 'payal-werulkar/letsupgrade-python-B7', 'size': '3760'}