diff --git a/.idea/Assignments.iml b/.idea/Assignments.iml
index 74d515a..cbb3ee5 100644
--- a/.idea/Assignments.iml
+++ b/.idea/Assignments.iml
@@ -4,7 +4,7 @@
-
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index aa8302e..b749013 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 55afcd0..a8a093c 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,7 +1,12 @@
+
+
+
-
+
+
+
@@ -14,16 +19,22 @@
+
+
+
-
-
-
-
-
+
@@ -40,8 +51,8 @@
-
-
+
+
@@ -53,7 +64,7 @@
-
+
@@ -62,7 +73,7 @@
-
+
@@ -70,11 +81,11 @@
-
+
-
+
@@ -83,7 +94,7 @@
-
+
@@ -91,11 +102,11 @@
-
+
-
+
@@ -104,7 +115,7 @@
-
+
@@ -116,7 +127,7 @@
-
+
@@ -125,7 +136,7 @@
-
+
@@ -137,7 +148,7 @@
-
+
@@ -148,11 +159,11 @@
-
+
+
+
+
-
-
-
@@ -168,6 +179,7 @@
+
@@ -181,85 +193,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/Section_01/assignment_01.py b/Section_01/assignment_01.py
index fa1f33a..9888798 100644
--- a/Section_01/assignment_01.py
+++ b/Section_01/assignment_01.py
@@ -5,8 +5,8 @@
How would you change the code to meet the requirement?
"""
-
-
+result=15%4
+print(result)
diff --git a/Section_01/assignment_02.py b/Section_01/assignment_02.py
index a5636d1..587ddb9 100644
--- a/Section_01/assignment_02.py
+++ b/Section_01/assignment_02.py
@@ -8,6 +8,8 @@
print("We have {2} small boxes, {2} large boxes, {2} medium boxes".format(10,12,12))
"""
+sentence='We actually have {} small, {} large, and {} medium boxes.'.format(10,12,12)
+print(sentence)
diff --git a/Section_01/assignment_03.py b/Section_01/assignment_03.py
index 5d312a7..3c73c8f 100644
--- a/Section_01/assignment_03.py
+++ b/Section_01/assignment_03.py
@@ -21,6 +21,9 @@
# Expected Result Printed: [[Cool]]
# Your code below:
+mid_of_chars=len(chars)//2
+result=chars[:mid_of_chars]+word+chars[mid_of_chars:]
+print(result)
diff --git a/Section_01/assignment_04.py b/Section_01/assignment_04.py
index addb148..afcbaca 100644
--- a/Section_01/assignment_04.py
+++ b/Section_01/assignment_04.py
@@ -19,7 +19,8 @@
# Expected Result Printed: omputerTuck
# Your code below:
-
+result=word1[1:]+word2[0]+word2[2:]
+print(result)
diff --git a/Section_01/assignment_05.py b/Section_01/assignment_05.py
index d672da4..8c5b487 100644
--- a/Section_01/assignment_05.py
+++ b/Section_01/assignment_05.py
@@ -23,7 +23,9 @@
# Your code below:
-
+mid_of_char=len(chars)//2
+result=chars[:mid_of_char]+word+chars[mid_of_char:]
+print(result)
diff --git a/Section_02/assignment_01.py b/Section_02/assignment_01.py
index 742cfa9..9889208 100644
--- a/Section_02/assignment_01.py
+++ b/Section_02/assignment_01.py
@@ -6,8 +6,11 @@
"""
-
+my_list = [{'Tom': 20000, 'Bill': 12000}, ['car', 'laptop', 'TV']]
# your code below:
+bill_salary=my_list[0]['Bill']
+
+print(f'The Salary that {list(my_list[0].keys())[1]} earns is $ {bill_salary}')
diff --git a/Section_02/assignment_02.py b/Section_02/assignment_02.py
index da7812a..264d7df 100644
--- a/Section_02/assignment_02.py
+++ b/Section_02/assignment_02.py
@@ -10,7 +10,8 @@
"""
# your code below:
-
+info={'Tom':{'Salary':20000,'Age':22,'owns_items':['Jacket','Car','TV']},'Mike':{'Salary':24000,'Age':27,'owns_items':
+ ['Bike','Laptop','Boat']}}
diff --git a/Section_02/assignment_03.py b/Section_02/assignment_03.py
index 5e91adb..d7d7b87 100644
--- a/Section_02/assignment_03.py
+++ b/Section_02/assignment_03.py
@@ -13,6 +13,10 @@
# your code below:
+new_list=original_list[:3]
+new_list.append(tuple(sorted(list(original_list[3]))))
+print(new_list)
+
diff --git a/Section_02/assignment_04.py b/Section_02/assignment_04.py
index c3e2a50..e2d832e 100644
--- a/Section_02/assignment_04.py
+++ b/Section_02/assignment_04.py
@@ -9,8 +9,12 @@
# Your Code Below:
-
-
+third_element=list(my_list[2])
+manipulation_1=third_element[0][3]='x'
+third_element=tuple(third_element)
+fourth_element=my_list[3]='television'
+my_list.pop(2)
+my_list.insert(2,third_element)
diff --git a/Section_03/assignment_01.py b/Section_03/assignment_01.py
index 3688656..5d77acf 100644
--- a/Section_03/assignment_01.py
+++ b/Section_03/assignment_01.py
@@ -7,6 +7,10 @@
# your code below:
+def merge_lists(lst1,lst2):
+ result= lst1+lst2
+ return result
+
@@ -51,5 +55,5 @@
# def merge_lists(list_a, list_b):
# return list_a + list_b
#
-# my_list = merge_lists([1,2,3],['a', 'b', 'c'])
-# print(my_list)
\ No newline at end of file
+my_list = merge_lists([1,2,3],['a', 'b', 'c'])
+print(my_list)
\ No newline at end of file
diff --git a/Section_03/assignment_02.py b/Section_03/assignment_02.py
index 3e74ab6..2e84530 100644
--- a/Section_03/assignment_02.py
+++ b/Section_03/assignment_02.py
@@ -7,6 +7,8 @@
Make sure to test the function.
"""
# Your Code Below:
+def separate(string):
+ return list(string)
@@ -15,6 +17,10 @@
+print(separate('Aadit Jain'))
+print(separate('My Lovely Sister - Rashi'))
+
+
@@ -56,4 +62,4 @@
# def separate(str):
# return list(str)
#
-# print(separate("hello there"))
\ No newline at end of file
+print(separate("hello there"))
\ No newline at end of file
diff --git a/Section_03/assignment_03.py b/Section_03/assignment_03.py
index 0d9731f..774111c 100644
--- a/Section_03/assignment_03.py
+++ b/Section_03/assignment_03.py
@@ -10,6 +10,11 @@
"""
# Your Code Below:
+def multi_merge(lst,string):
+ lst=list(map(str,lst))
+ string_list=list(string)
+ lst+=string_list
+ return sorted(lst)
@@ -18,8 +23,7 @@
-
-
+print(multi_merge(['Aadit','Jain','UP','37','U','P',6,3,1,0],'UP37U6310'))
@@ -56,4 +60,4 @@
# def multi_merge(list_a, str):
# return list_a + str.split() + list(str)
#
-# print(multi_merge([1,2,3,4], "Hello My name is imtiaz"))
+print(multi_merge([1,2,3,4], "Hello My name is imtiaz"))
diff --git a/Section_03/assignment_04.py b/Section_03/assignment_04.py
index a33876f..72e1837 100644
--- a/Section_03/assignment_04.py
+++ b/Section_03/assignment_04.py
@@ -13,14 +13,16 @@
"""
# Your code below:
+def last_list(*args):
+ return args[-1]
-
-
+print(last_list([1,2,3,4,5], ['a', 'b', 'c'], ['mike', 'john']))
+print(last_list(['Aadit','Jain','UP','37','U','P',6,3,1,0]))
diff --git a/Section_03/assignment_05.py b/Section_03/assignment_05.py
index 425df0b..5fa4056 100644
--- a/Section_03/assignment_05.py
+++ b/Section_03/assignment_05.py
@@ -14,11 +14,8 @@
"""
# Your Code Below:
-
-
-
-
-
+def key_list_items(**kwargs):
+ return kwargs['people'][-2]
@@ -65,6 +62,6 @@
# keys = kwargs[key]
# return keys[-2]
#
-# result = key_list_items("people", things=['book', 'tv', 'shoes'], people=['pete', 'mike', 'jan', 'tom'],
-# ages=[20, 30, 40])
-# print(result)
\ No newline at end of file
+result = key_list_items("people", things=['book', 'tv', 'shoes'], people=['pete', 'mike', 'jan', 'tom'],
+ ages=[20, 30, 40])
+print(result)
\ No newline at end of file
diff --git a/Section_04/assignment_01.py b/Section_04/assignment_01.py
index f3313a1..0e0163c 100644
--- a/Section_04/assignment_01.py
+++ b/Section_04/assignment_01.py
@@ -13,6 +13,16 @@
"""
# Your Code Below:
+def twelver(a,b):
+ if ( a==12 or b==12 ) or (a+b==12):
+ return True
+ return False
+
+print(twelver(3, 12))
+
+print(twelver(4, 9))
+
+print(twelver(9, 3))
diff --git a/Section_04/assignment_02.py b/Section_04/assignment_02.py
index d0dc7b5..0fbf46e 100644
--- a/Section_04/assignment_02.py
+++ b/Section_04/assignment_02.py
@@ -18,6 +18,16 @@
"""
# Your Code Below:
+def pay_extra(working,hour):
+ if working==True and (hour>=20 or hour<=8):
+ return True
+ return False
+
+print(pay_extra(True, 11))
+
+print(pay_extra(False, 5))
+
+print(pay_extra(True, 6))
diff --git a/Section_04/assignment_03.py b/Section_04/assignment_03.py
index 6d4d390..818de0a 100644
--- a/Section_04/assignment_03.py
+++ b/Section_04/assignment_03.py
@@ -12,6 +12,9 @@
"""
# Your Code Below:
+def sequence(*args):
+ pass
+print(sequence([1, 1, 2, 3, 1]))
diff --git a/Section_04/assignment_04.py b/Section_04/assignment_04.py
index b5940c4..fcbd381 100644
--- a/Section_04/assignment_04.py
+++ b/Section_04/assignment_04.py
@@ -10,6 +10,17 @@
"""
# Your Code Below:
+def grow_string(string):
+ result_string=''
+ for i in range(len(string)):
+ result_string+=string[:i+1]
+ return result_string
+
+print(grow_string('Code'))
+
+print(grow_string('abc'))
+
+print(grow_string('ab'))
diff --git a/Section_04/assignment_05.py b/Section_04/assignment_05.py
index 3b61d70..a95ff8e 100644
--- a/Section_04/assignment_05.py
+++ b/Section_04/assignment_05.py
@@ -14,8 +14,17 @@
"""
# Your Code Below:
+def first3(lst):
+ first_four=lst[:4]
+ return 6 in first_four
+print(first3([1, 2, 6, 3, 4]))
+
+print(first3([1, 2, 3, 4, 6]))
+
+print(first3([1, 2, 3, 4, 5]))
+