basshed.blogg.se

Hangman python 2.7.9 2 player
Hangman python 2.7.9 2 player









  • Create a program that allows him to input a certain amount of change, and then print how how many quarters, dimes, nickels, and pennies are needed to make up the amount needed.Įxample: if he inputs 1.47, the program will say that he needs 5 quarters, 2 dimes, 0 nickels, and 2 pennies.
  • Imagine that your friend is a cashier, but has a hard time counting back change to customers.
  • Change the word "a" to "an" when the next word in the sentence begins with a vowel.
  • If the user has to put in a name, change the first letter to a capital letter.
  • Tip: it's easiest to write out a quick story on a piece of paper or a word document, and then go back through and see which words the user should be able to change.
  • The story doesn't have to be too long, but it should have some sort of story line.
  • Create a Mad Libs style game, where the program asks the user for certain types of words, and then prints out a story with the words that the user inputted.
  • hangman python 2.7.9 2 player

    The result is usually comic, surreal and somewhat nonsensical." Finally, the completed story is read aloud. Beneath each blank is specified a lexical or other category, such as "noun," "verb," "place," or "part of the body." One player asks the other players, in turn, to contribute some word for the specified type for each blank, but without revealing the context for that word. "Mad Libs consist of a book that has a short story on each page with many key words replaced with blanks. Allow the user to select whether they want to submit the weight in either grams or pounds.Įver played Mad Libs? If you haven't, here are the basics:.Round all numbers printed out to the nearest whole number.Print out how many of each type of coin wrapper they would need, how many coins they have, and the estimated total value of all of their.Allow the user to input the total weight of each type of coin they have (pennies, nickels, dimes, and quarters).

    hangman python 2.7.9 2 player

    Here is the weight of each coin and how many fit inside each type of wrapper. Instead of counting how many coins you have, it's easier to separate all of your coins, weigh them, and then estimate how many of each type you have and then how many wrappers you'll need.įor example, if you weigh all of your dimes and see that you have 1276.9g of them, you can estimate that you have about 563 dimes (since each one is 2.268g) and you would be able to fill 11 dime wrappers. While most banks will give away coin wrappers for free, it's convenient to have an idea of how many you will need. Once they fill up the container, they'll roll them up in coin wrappers which can then be traded in at a bank for what they are worth. When some people receive change after shopping, they put it into a container and let it add up over time. Give the player the option to play again.Compare the choices and decide who wins.Ask the player to pick rock, paper or scissors.Loop the program so the user can use it more than once without having to restart the program.Return whether the triangle is a Pythagorean Triple or not.Allows the user to input the sides of any triangle in any order.If you do not know how basic right triangles work, read this article on wikipedia.It must have box for users to enter the question.

    hangman python 2.7.9 2 player

  • Allow the user to ask another question or quit.
  • Create 20 responses, and show a random response.
  • Allow the user to enter their question.
  • Tip: All single digit numbers are Armstrong numbers.
  • Add them, and if your answer is the original number then it is an Armstrong number. Then take every digit in the number and raise it to the nth power.
  • Hint: To do this, first determine the number of digits of the given number.
  • hangman python 2.7.9 2 player

  • Define a function that allows the user to check whether a given number is armstrong number or not.
  • Remember, when you reach 1 bottle left, the word "bottles" becomes singular.
  • Besides the phrase "take one down," you may not type in any numbers/names of numbers directly into your song lyrics.
  • Do not use a list for all of the numbers, and do not manually type them all in.
  • Create a program that prints out every line to the song "99 bottles of beer on the wall.".
  • Projects are somewhat ordered by increasing difficulty.











    Hangman python 2.7.9 2 player