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?