<jupyter_start><jupyter_text>String<jupyter_code>name1="my name is gunjan"

name2="My surname is Mahajan"
name1+" "+name2
# capitalize:converts first letter into uppercase
str.capitalize(name1)
# casefold: converts string into lowercase
str.casefold(name1)
str.casefold(name2)
# endswith:Returns true if the string ends with the specified value
name1.endswith("gunjan")
# isdigit:Returns True if all characters in the string are digits
name1.isdigit()
name1.strip()
#title :Converts the first character of each word to upper case
str.title(name1)<jupyter_output><empty_output><jupyter_text>List<jupyter_code>lst= ["<NAME>",[1,2,2,3],10.1,10]
lst
#append:adds string to end of list
lst.append("engineering")
lst
#index: gives index of the object
lst.index(10.1)
#remove: removes the object from the list
lst.remove(10)
lst
#nsert:inserts the object at particular place
lst.insert(1,8)
lst
#clear:clears the list
lst.clear()
lst<jupyter_output><empty_output><jupyter_text>dictionaries<jupyter_code>dit={"name":"<NAME>", "phone no":1234567, "age":20}
dit
#value:gives all the value of dictionary
dict.values(dit)
#key:gives all the keys of dictionary
dit.keys()
#get:gives the value for the key
dit.get("name")
#items: displays all the items of dictionary
dit.items()
#clear:Clears all the data from dictionary
dit.clear()
dit
dit.get("1234567")
#pop:gives the value for the key
dit.pop("name")
dit["school"] = "chinmaya"
dit<jupyter_output><empty_output><jupyter_text>Sets<jupyter_code>st= {"Bhoomi","KLE",(80,80,20,90,90),1,2,3,2,2,2}
st
#add:adds object to set
st.add(4)
st
st1={1,2,3,4}
#issubset:checks if one set is subset of other
st1.issubset(st)
#isdisjoint:checks if one set is disjoint of other
st1.isdisjoint(st)
st2= {"Harshita",1,2,8,9}
#difference:dispalys diffrence between 2 sets
st2.difference(st)
st2.add(10)
#difference_update: displays the updated set
st2.difference_update(st)
#clear: clears the set
st2.clear()
st2<jupyter_output><empty_output><jupyter_text>tuple<jupyter_code>tup=("Chirag","$","student",1,2,3)
tup
#count:counts the number of letter
tup.count("$")
#index:gives the index value
tup.index(1)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1349095966620306, 'fraction_numerical': 0.03894297635605007, 'mean_word_length': 7.808163265306122, 'pattern_counts': {'":': 3, '<': 23, '<?xml version=': 0, '>': 23, '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': '164626', 'license': 'Apache-2.0', 'n_tokens_mistral': 859, 'n_tokens_neox': 816, 'n_words': 209, 'path': 'Assignment day 2.ipynb', 'repo_name': 'Gunjan3103/letsupgrade-python', 'size': '2172'}