Episode 1: Using the Python Interpreter

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,471
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 21, 2009

Using the Python Interpreter

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (ryanmshea)

  • 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 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

  • humoreffect, I don't have Windows around but I'm sure you'll figure it out.

  • humoreffect, I don't have Windows around but I'm sure you'll figure it out.

  • 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).

see all

All Comments (13)

Sign In or Sign Up now to post a comment!
  • 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...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more