Skip to main content

Home/ Puerto Rico Python Interest Group/ Group items tagged gets

Rss Feed Group items tagged

Kevin Shockey

A simple hangman game made with Python 2.7.3 · GitHub - 0 views

  •  
    "class Hangman(): def __init__(self): print "Welcome to 'Hangman', are you ready to die?" print "(1)Yes, for I am already dead.\n(2)No, get me outta here!" user_choice_1 = raw_input("->") if user_choice_1 == '1': print "Loading nooses, murderers, rapists, thiefs, lunatics..." self.start_game() elif user_choice_1 == '2': print "Bye bye now..." exit() else: print "I'm sorry, I'm hard of hearing, could you repeat that?" self.__init__() def start_game(self): print "A crowd begins to gather, they can't wait to see some real" print "justice. There's just one thing, you aren't a real criminal." print "No, no. You're the wrong time, wrong place type. You may think" print "you're dead, but it's not like that at all. Yes, yes. You've" print "got a chance to live. All you've gotta do is guess the right" print "words and you can live to see another day. But don't get so" print "happy yet. If you make 6 wrong guess, YOU'RE TOAST! VAMANOS!" self.core_game() def core_game(self): guesses = 0 letters_used = "" the_word = "pizza" progress = ["?", "?", "?", "?", "?"] while guesses < 6: guess = raw_input("Guess a letter ->") if guess in the_word and not in letters_used: print "As it turns out, your guess was RIGHT!" letters_used += "," + guess self.hangman_graphic(guesses) print "Progress: " + self.progress_updater(guess, the_word, progress) print "Letter used: " + letters_used elif guess not in the_word and not(in letters_used): guesses += 1 print "Things aren't looking so good, that guess was WRONG!" print "Oh man, that crowd is getting happy, I thought you" print "wanted to make them mad?" letters_used += "," + guess self.hangman_graphic(guesses) print "Progress: " + "".join(progress) print "Letter used: " + letters_used else: print "That's the wrong letter, you wanna be out here all day?" print "Try again!" def hangman_graphic(self, guesse
Kevin Shockey

Pythonista Review - Programming iOS with Python - Jacken's Blog - 0 views

  •  
    "But an app for programming Python on iOS called Pythonista have some smart ways of getting around some of Apples restrictions. And one of the nice things you can do is home screen shortcuts, making your scripts available directly from your home screen of your iOS device."
Kevin Shockey

PythonEventsCalendar - Python Wiki - 0 views

  •  
    "If you would like to get new events listed on these calendars, please write to events@python.org mentioning: the name of the event (including the user group name for user group events) type of event (conference, bar camp, sprint, user group meeting, etc.) focus on Python and approximate size (number of attendees) the location (venue address, including city and country) the dates/times (including the time zone) a URL with more details for the event"
Kevin Shockey

A Guide to Running a Python User Group - Python User Group Guide 0.1 documentation - 0 views

  •  
    "Hello, everyone! I'm name, organizer of this Python user group. Thanks for coming to the project night. We have wifi here, and food and drinks that you can take; thanks to sponsor name for making that possible. We're excited about having people of all experience levels in Python here today, and to support them, we have a few people who are excited about helping beginners. Can I get those people to stand up? We've labeled a table as the "Beginner's corner," so if you specially want mentorship today, go visit there and say hi to the person next to you, and talk with one of the lovely people who want to help you have a great time with Python. I'll be here all evening, so if you need anything else, just ask me. Thanks to all of you for coming!"
Kevin Shockey

March Project Night - The Boston Python User Group (Cambridge, MA) - Meetup - 0 views

  •  
    "Come work on Python projects, get programming help, help others, and hang out. Bring your own project or work on one of the suggested projects below.  Everyone is welcome, all skill levels are encouraged. We often have tables dedicated to Learners, Django, Science, Hardware, etc. Friendly people will be here to help beginning Python programmers with language basics and practice. Audience: Everyone! All Python experience levels are welcome, and everything is self-paced. When: 6:30pm - 9:00pm on Monday, March 10th Location: Microsoft NERD Center One Memorial Drive, Cambridge, 02142 Food: Pizza will be provided! Things to bring: a wireless-enabled laptop and power cord. Also: we'll have more Python puzzles, and giveaways (including a hardware goodie from Ab Initio!). Need some project ideas? How about: Learning Python * The official Python tutorial * How to Think Like a Computer Scientist: Learning with Python * An introduction to Python through writing games * Learn Python the Hard Way Projects and competitions * Contribute to an open-source project that uses Python. Developers from OpenHatch, Twisted, and other projects are often here. If you contribute to an open source project that uses Python and want to help new contributors, let us know in a comment! * Use Python to participate in space exploration. * Unleash your inner DJ with the Echo Nest APIs. * Want to learn a Python web framework? Check out the Django tutorial."
1 - 15 of 15
Showing 20 items per page