Is ‘input’ a keyword in Python?

No, input is not a keyword. Instead, it is a built-in function.

And yes, you can create a variable with the name input. But please don’t. Doing so is a bad practice because it overshadows the built-in (makes it unusable in the current scope).

If you must use the name input, the convention is to place an underscore after it:

input_ = input()

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)