Skip to content Skip to sidebar Skip to footer
Showing posts with the label Python Idle

How Do I Pass Variables Around In Python?

I want to make a text-based fighting game, but in order to do so I need to use several functions an… Read more How Do I Pass Variables Around In Python?

How To Find And Replace All Tabs With Spaces In Idle

I have an invisible expected an indented block error, which is likely caused by me using tabs inste… Read more How To Find And Replace All Tabs With Spaces In Idle

Python Idle, Importing Xlrd, Error Generated In Debug Mode: Attributeerror: '_modulelock' Object Has No Attribute 'name'

I'm a newbie to Python and this is the first time I've tried debug mode. I've read the … Read more Python Idle, Importing Xlrd, Error Generated In Debug Mode: Attributeerror: '_modulelock' Object Has No Attribute 'name'

How To Prevent Python Idle From Restarting When Running New Script

I use Python 3.6.1 IDLE. I'd like to be able to run a sequence of scripts while maintaining the… Read more How To Prevent Python Idle From Restarting When Running New Script

Exit Gracefully If File Doesn't Exist

I have following script in Python 3.2.3: try: file = open('file.txt', 'r') exce… Read more Exit Gracefully If File Doesn't Exist

How Do I Import My User-defined Function Without Having To Call The .py File It Is In?

To solve the problem of the (Python) IDLE not having a built-in 'clear' function, I created… Read more How Do I Import My User-defined Function Without Having To Call The .py File It Is In?

Script Fails With Attributeerror When Run In Cmd, But Executes Fine In Idle

I am quite new and confused. I tried a simple script with tkinter and it worked fine in IDLE but wh… Read more Script Fails With Attributeerror When Run In Cmd, But Executes Fine In Idle

Writing To A File Prints Integers To My Idle Shell

Writing to a file prints integers to my IDLE shell. They seem to range from 15-40 and there's o… Read more Writing To A File Prints Integers To My Idle Shell

Compare Two Same Strings But Get Different Results In Idle

I'm using python 2.7.2 with built-in IDLE on windows 7 x64, and found a very strange thing: >… Read more Compare Two Same Strings But Get Different Results In Idle

Importing From A Package In Idle Vs Shell

Importing a whole package works in IDLE, but not in shell. The following works fine in IDLE: import… Read more Importing From A Package In Idle Vs Shell

Private Unicode Character Displays Differently In Python 3 Interpreter

So I created a unicode character privately using Private Character Editor on Windows 10. The charac… Read more Private Unicode Character Displays Differently In Python 3 Interpreter

Python Win32api.LoadKeyboardLayout(), Doesnt Change Language In IDLE Shell?

Can someone help me out please...I'm trying to start my first programming project. It will be i… Read more Python Win32api.LoadKeyboardLayout(), Doesnt Change Language In IDLE Shell?

Clear Line In The Python IDLE Shell

Is there a keyboard shortcut to clear a line for the Python IDLE shell? I know Ctrl-K works if you … Read more Clear Line In The Python IDLE Shell