0

I am not getting it. Why is it showing error again

https://code.sololearn.com/c01Lf2WQHkn5/?ref=app

30th Apr 2022, 5:33 AM
Kaushik
Kaushik - avatar
3 Answers
+ 10
NEVER use "input" as a variable name. input() is a built-in function which is overridden when you create name conflicts like that.
30th Apr 2022, 11:18 AM
Slick
Slick - avatar
+ 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
30th Apr 2022, 2:26 PM
A͢J
A͢J - avatar
+ 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
30th Apr 2022, 6:34 PM
Shadoff
Shadoff - avatar