Here was the other example with the type() command:
I input 54 as the input value.
print("enter a name or number")
test_input = input()
This appeared in the console:
enter a name or number
I tried this and nothing appeared in the console.
test_input = “Lala”
Oh, I thought test is a standard python function, so I was googling if I maybe had the wrong version of the Pythonista app downloaded. I had the same issue with type(). Is that also not a standard python function?
The task that I am trying to accomplish with the above code is to:
- Create a variable to store input: name, age, yes_no
- Create prompts for name, age and yes/no to being on an email list
- Print a description + variable values for each variable
Hi I am a serious beginner with python and pythonista and I a stuck pretty early on in my course. What does this notification mean? Name ‘test’ is not defined.
Here is the code:
print("fill out this form") print("enter your name") name = input() print("how old are you?") age = input() print("do you want to be an email suscriber?") yes_no = input() test(input())