0
I am not getting it. Why is it showing error again
3 odpowiedzi
+ 10
NEVER use "input" as a variable name. input() is a built-in function which is overridden when you create name conflicts like that.
+ 3
Kaushik
Instead of taking string input you can take as a number
1 - Single Number
2 - Set of Number
if num == 1:
i = int(input())
elif num == 2:
It would be easy for other users
+ 1
mostly if it is urgent to use variable names as same as built-in function names, use them a little changed.
like:
input_
len_
print_
true_
e.t.c