Skip to content

Commit 99c0995

Browse files
Submitted
1 parent d092846 commit 99c0995

File tree

3 files changed

+25
-21
lines changed

3 files changed

+25
-21
lines changed

.idea/workspace.xml

+15-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Section_03/assignment_03.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
"""
1212
# Your Code Below:
1313
def multi_merge(lst,string):
14-
pass
15-
14+
lst=list(map(str,lst))
15+
string_list=list(string)
16+
lst+=string_list
17+
return sorted(lst)
1618

1719

1820

@@ -21,6 +23,7 @@ def multi_merge(lst,string):
2123

2224

2325

26+
print(multi_merge(['Aadit','Jain','UP','37','U','P',6,3,1,0],'UP37U6310'))
2427

2528

2629

@@ -57,4 +60,4 @@ def multi_merge(lst,string):
5760
# def multi_merge(list_a, str):
5861
# return list_a + str.split() + list(str)
5962
#
60-
# print(multi_merge([1,2,3,4], "Hello My name is imtiaz"))
63+
print(multi_merge([1,2,3,4], "Hello My name is imtiaz"))

Section_03/assignment_04.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@
1313
"""
1414

1515
# Your code below:
16+
def last_list(*args):
17+
return args[-1]
1618

1719

1820

1921

2022

2123

22-
23-
24+
print(last_list([1,2,3,4,5], ['a', 'b', 'c'], ['mike', 'john']))
25+
print(last_list(['Aadit','Jain','UP','37','U','P',6,3,1,0]))
2426

2527

2628

0 commit comments

Comments
 (0)