Episode 1: Using the Python Interpreter
Loading...
3,471
Loading...
Uploader Comments (ryanmshea)
see all
All Comments (13)
-
Great for one liners.. :')
-
Ah, not being a Linux user I wondered what the #! line I sometimes saw was about. Thanks for clearing that up. :)
-
Quick question but wth is this even used for?
-
how do you change the input name from NameError to something else?
-
@humoreffect You get syntax error because your python version is different from what he is using. Try using python 2.7.1
-
I'm using python 3.2 on windows XP and none of the commands word for me, they all return a syntax error. For instance, when I try: python -c 'print "hello world"'
it highlights the last apostrophe and says syntax error. I'm sure I'm making some stupid mistake, any thoughts?
Loading...
how to you download the pdb module on ubuntu?
because when I type python -m pdb foo.py it says foo.py does not exist
BTW sorry for being a noob :(
TheGibberishGlitcher 11 months ago
@TheGibberishGlitcher pdb is in the standard library as far as I know. Does foo.py exist? If you call a module that does not exist it should look more like this...
[ryan@python]~$ python -m fart
/usr/bin/python: No module named fart
ryanmshea 11 months ago
humoreffect, I don't have Windows around but I'm sure you'll figure it out.
ryanmshea 11 months ago
humoreffect, I don't have Windows around but I'm sure you'll figure it out.
ryanmshea 11 months ago
Python is cross platform. This is based on the official Python tutorial, so these will be useful if you're on Windows, Android, BeOS, QNX, IRIX (I wonder if there is a Python for IRIX).
ryanmshea 1 year ago