#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0

    Hello I'm learning python but sometimes python shell wont let me type??


    I can't type on python shell from time to time if I hit enter 2 are 3 times
    I'm able to type again but I cant see what I'm typing
    how can I fix this so I can keep learning python

    Thank you for your time
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0
    Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32
    Type "copyright", "credits" or "license()" for more information.
    >>> 2 + 2
    4
    >>> 3 - 10
    -7
    >>> 10 * 10
    100
    >>> 100 / 10
    10.0
    >>> division = 100 /10
    >>> type(division)
    <class 'float'>
    >>> 100 / 6
    16.666666666666668
    >>> isinstance(division)
    Traceback (most recent call last):
    File "<pyshell#7>", line 1, in <module>
    isinstance(division)
    TypeError: isinstance expected 2 arguments, got 1
    >>> help(isistance)
    Traceback (most recent call last):
    File "<pyshell#8>", line 1, in <module>
    help(isistance)
    NameError: name 'isistance' is not defined
    >>> help(isinstance)
    Help on built-in function isinstance in module builtins:

    isinstance(...)
    isinstance(object, class-or-type-or-tuple) -> bool

    Return whether an object is an instance of a class or of a subclass thereof.
    With a type as second argument, return whether that is the object's type.
    The form using a tuple, isinstance(x, (A, B, ...)), is a shortcut for
    isinstance(x, A) or isinstance(x, B) or ... (etc.).


    After this python shell wont let me type anything
  4. #3
  5. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,928
    Rep Power
    481
    Same answer as here. uses emacs. Run python in a shell buffer.

    Do you mean "idle" when you say "python shell"?

    Are you sure you've moved your cursor all the way down to the prompt after reading the help?

    Are you piping the output through more? Maybe pressing the space bar will help.

    Did you press ^s ? Press ^q .

    Is there a "pop under" message box? Move your windows around. Sometimes those sneaky pop unders cause all sorts of trouble.

    Good luck.

    Comments on this post

    • lil jon agrees : He help think more
    [code]Code tags[/code] are essential for python code and Makefiles!
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0
    b49P23TIvg
    I'm alil embarrassed to say this but all I had to do was scroll down my bar so I could see what I'm typing its just a Lil hard to see
    I'm using cbt nuggets videos to learn python. In the videos they are using python 3.1.2 and I'm using the newest one python 3.3 on windows ?and the instructor calls it python shell. But yea the name of the window is IDLE (PYTHON GUI)
  8. #5
  9. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,928
    Rep Power
    481
    Most of the differences between python3 in the video and your version of python are in the libraries.

    I think. You're good to go.
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo