0
Whats wrong with this code
2 Answers
+ 1
You taking 5 inputs but for printing only.. Not storing...
This may works..
Try..
for i in range(m):
o = int(input("enter element: "))
lst.append(o)
and function not returning anything so just call,
num(5,2) # dont use print(num(5,2))
0
What do you want to achieve and what are you not achieving?
Line 5: remove print()
Line 6: add 1 TAB