Now it's a syntax error.
My file reads:
v=input("Enter a value: ")
print (v)
Run it through Python Launcher and the reult is :
Last login: Thu Aug 29 12:44:21 on ttys000
Lous-MacBook-Pro:~ lk$ cd '/Users/lk/Desktop/' && '/usr/bin/pythonw' '/Users/lk/Desktop/sample.py' && echo Exit status: $? && exit 1
Enter a value: I type a value
Traceback (most recent call last):
File "/Users/lk/Desktop/sample.py", line 1, in <module>
v=input("Enter a value: ")
File "<string>", line 1
I type a value
^
SyntaxError: invalid syntax
Lous-MacBook-Pro:Desktop lk$
Q: How do you guys get input in your script's? I've hit a brick wall.
But if I type in "ertwert" it turns into a name error.
Last login: Thu Aug 29 13:02:07 on ttys005
Lous-MacBook-Pro:~ lk$ cd '/Users/lk/Desktop/' && '/usr/bin/pythonw' '/Users/lk/Desktop/sample.py' && echo Exit status: $? && exit 1
Enter a value: ertwert
Traceback (most recent call last):
File "/Users/lk/Desktop/sample.py", line 1, in <module>
v=input("Enter a value: ")
File "<string>", line 1, in <module>
NameError: name 'ertwert' is not defined
Lous-MacBook-Pro:Desktop lk$
Different errors depending upon what is typed in???
My file reads:
v=input("Enter a value: ")
print (v)
Run it through Python Launcher and the reult is :
Last login: Thu Aug 29 12:44:21 on ttys000
Lous-MacBook-Pro:~ lk$ cd '/Users/lk/Desktop/' && '/usr/bin/pythonw' '/Users/lk/Desktop/sample.py' && echo Exit status: $? && exit 1
Enter a value: I type a value
Traceback (most recent call last):
File "/Users/lk/Desktop/sample.py", line 1, in <module>
v=input("Enter a value: ")
File "<string>", line 1
I type a value
^
SyntaxError: invalid syntax
Lous-MacBook-Pro:Desktop lk$
Q: How do you guys get input in your script's? I've hit a brick wall.
But if I type in "ertwert" it turns into a name error.
Last login: Thu Aug 29 13:02:07 on ttys005
Lous-MacBook-Pro:~ lk$ cd '/Users/lk/Desktop/' && '/usr/bin/pythonw' '/Users/lk/Desktop/sample.py' && echo Exit status: $? && exit 1
Enter a value: ertwert
Traceback (most recent call last):
File "/Users/lk/Desktop/sample.py", line 1, in <module>
v=input("Enter a value: ")
File "<string>", line 1, in <module>
NameError: name 'ertwert' is not defined
Lous-MacBook-Pro:Desktop lk$
Different errors depending upon what is typed in???