Answer the question
In order to leave comments, you need to log in
What's wrong with python?
Writes: Typeerror: 'input' is an invalid keyword argument for this function
I write:
num = (int (input = "How old are you?"))
if num < 18:
TAB print ("You're still young!")
if num > 18:
TAB print ("You're already old!")
Answer the question
In order to leave comments, you need to log in
num = int(input("Сколько вам лет?"))
input is a function, you don't need to equate it to anything, and even inside a type conversion, and even inside a variable assignment.
You were hinted about this in a comment to the question, but you did not understand the catch.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question