0
[Solved] Why does the second input result in TypeError?
2 ответов
+ 4
# Password quantity input.
def inp_pas():
global inp_pas
inp_pas = int(input('Input: '))
You have both a function and a global variable by the same name.
global inp_pas redefines def inp_pas from a function type to an int type.
+ 1
ChaoticDawg Such a rookie mistake! Thank you!