Please help me out with the error in the code
a=input("Enter the number:")
kp(a)
def kp(num):
for i in range(20):
print(num*i)
Please help me out with the error in the code
a=input("Enter the number:")
kp(a)
def kp(num):
for i in range(20):
print(num*i)
You should define your function before its calling:
a=input("Enter the number:")
def kp(num):
for i in range(20):
print(num*i)
kp(a)