File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,10 @@ def main() -> None:
9
9
L = []
10
10
len_of_list = int (input ("Enter the len of the list: " ))
11
11
12
- for _ in range (len_of_list + 1 ):
12
+ while len ( L ) < (len_of_list + 1 ):
13
13
print (">> " , end = "" )
14
14
args = input ().strip ().split (" " )
15
+
15
16
if args [0 ] == "append" :
16
17
L .append (int (args [1 ]))
17
18
elif args [0 ] == "insert" :
Original file line number Diff line number Diff line change
1
+ """
2
+ You are given the firstname and lastname of a person on two different lines.
3
+ Your task is to read them and print the following:
4
+ Hello firstname lastname! You just delved into python.
5
+ """
6
+
7
+
8
+ def delved_into_python (first , last ):
9
+ return f"Hello { first } { last } ! You just delved into python."
10
+
11
+
12
+ if __name__ == "__main__" :
13
+ print (delved_into_python (input (), input ()))
You can’t perform that action at this time.
0 commit comments