Madlib Madness

Earlier in the term, our intro classes spent a little time learning some basic HTML. We don't spend a lot of time on it, just enough so that the students can present their work in a static web site. The end goal, though, was to programatically generate the web sites - there's nothing quite as empowering to a student as when they can present their work to the world.

Finally, it's all coming together.

Now that the classes are comfortable with Python, we can have some fun. We all remember Mad Libs - that wacky word game where you select unknowingly select words to substitute into a basic story and hilarity ensues.

We did our own versions using Python files, lists and dictionaries.

Here are some of the results: 1. http://homer.stuy.edu/~richard.zhan/19-Madlibs.py 2. http://homer.stuy.edu/~veronika.azzara/madlibifystory.py 3. http://homer.stuy.edu/~belinda.liang/18-MadLibsMiniProject.py 4. http://homer.stuy.edu/~kyle.oleksiuk/MadlibifyProject5.py 5. http://homer.stuy.edu/~phillip.huynh/story.py

The students wrote a basic story with substitution points. Their programs then randomly replaced these points with words from an assortment of categorized lists.

Enjoy!!!!!

Comments

Comments powered by Disqus



Enter your email address:

Delivered by FeedBurner

Google Analytics Alternative