Questions tagged [swampy]

Swampy is a suite of Python programs for use with Think Python, Python for Software Design, and The Little Book of Semaphores.

Swampy is a suite of Python programs for use with Think Python, Python for Software Design, and The Little Book of Semaphores.

It was written by Allen Downey and is available under the GNU General Public License (GPL).

Swampy includes these components:

AmoebaWorld

Provides a fun environment to practice writing Python expressions and to introduce object-oriented programming.

TurtleWorld

An implementation of turtle graphics used to teach procedural interface design and object-oriented programming.

TurmiteWorld

Allows students to experiment with cellular automata and finite state machines, including Langton's Ant. (The misspelling of "termite" is deliberate; it is a tribute to Alan Turing).

Sync

A simulator that demonstrates the execution of multithreaded programs that interact through Semaphores. Sync is designed to run the examples and solutions from The Little Book of Semaphores.

Lumpy

Lumpy stands for "UML in Python". It generates UML class diagrams and UML object diagrams from a Python program.

source: http://www.greenteapress.com/thinkpython/swampy/

23 questions
0
votes
2 answers

Error trying to import TurtleWorld

I'm trying to run through the python book ThinkingPython and have gotten to the first case study and I can't get the module to load. I'm using python 3.3.2 and swampy 2.1.5 and and using a mac with the latest OS. When I try to import TurtleWorld I…
Andrew
  • 11
  • 2
0
votes
1 answer

Enthought Canopy v1.41, and thinkpython.com/code/swampy causes crash

Trying to learn python. Chapter 4 of Think Python by Allen Downey requires you to download package from thinkpython.com/swampy. Had trouble implementing the directions on the website, so I copied Swampy to it's own directory. from…
Lauren
  • 1
  • 1
0
votes
1 answer

issue with python 3.4+ and pip

I installed pip 3.4 recently , however i cant seem to use pip properly ( which is included with the latest python 3) it gives me this error whenever i attempt to import it : "Traceback (most recent call last) File "", line 1, in…
0
votes
1 answer

Python 2.7.3 :AttributeError: 'NoneType' object has no attribute 'canvas'

I am just beginner with python and have started with python 2.7.3 Version.I have been following up with Think Python e-book.I am stuck at chapter 4 Case study: interface design where there is a program to draw lines.I get the following error when i…
Kworks
  • 773
  • 4
  • 13
  • 19
0
votes
1 answer

Importing Swampy (Python learning module)

I'm working on"ThinkPython" and in chapter4 we're asked to download swampy (a learning module). Well I followed the instructions here and I installed it, but when I try to import in IDLE(Python GUI) using: import swampy.TurtleWorld, I get the…
Nada Alami
  • 13
  • 1
  • 5
0
votes
4 answers

Installing Swampy for Python 3

I am currently running Python 3.2 on my computer and need to install Swampy for a book I am reading. Reading many pages and pages on a tutorial has left me further confused. I have downloaded 'swampy1.4'. I am trying to do this by following the set…
Hummus
  • 365
  • 1
  • 7
  • 16
-1
votes
1 answer

Installing Swampy Step by Step

I'm a novice at programming and am reading the book 'Think Python.' In Chapter 4 I need to install 'swampy'- the python package. I have been trying for the past few days with no luck. I am running both Python 2.7 and 3.2. My computer runs Windows 7…
Hummus
  • 365
  • 1
  • 7
  • 16
-2
votes
2 answers

TypeError: 'str' object is not callable while trying to use python swampy

from swampy.TurtleWorld import * import random world = TurtleWorld() Turtle_1 = Turtle() print('*****Welcome to Sehir Minesweeper*****') print('-----First Turtle-----') Turtle_1 = input('Please type the name of the first Turtle:') print('Turtle…
1
2