if input(): user_input = input() print(user_input)
user_input = None if input(): user_input = input() print(user_input)
Used when a local variable is accessed before its assignment.