+ 1
I am beginner. Can anyone please explain how to me use insert function in python?
num = int(insert("enter a number")) print (num) ::::::: It's always showing error :::::: Please show me an simple example
5 Respostas
+ 8
ViKasH I your code should be like this...
num = int(input("enter a number"))
print (num)
+ 2
num = [0,1]
i = 2
num.insert(i, int(input('Enter a number ')))
print(num)
+ 2
I think what you're looking for is the input() function.
+ 1
Write input instead of insert