Need Help with a Python assignment

Need Help with a Python assignment

Lab 3

Attached Files:

Objectives

  • Loading, saving, editing, and running basic Python scripts
  • Perform user input
  • Use a Python “Dictionary” object to store data
  • Display data from the Dictionary object.

Overview

This is a pretty common exercise, but useful (and extensible) nonetheless.

The goal is to create a ” MadLibs™” like game which asks the user to enter a series of nouns, verbs, adjectives, adverbs, plural nouns, past tense verbs, etc., and then generates a paragraph which is syntactically correct but semantically ridiculous. (I’m assuming everyone knows MadLibs, but given that the “game” is trademarked, copyrighted, and probably even patented… I’m afraid there will be little commercial market for your application).

Instructions

  1. Create a new file called LAB3.py to begin to contain your program.
  2. You should prompt the user for about 10 words or phrases and store each result in a “Dictionary”
    • You should have a functiondedicated to the task of acquiring the user input.

  3. Once all of the input has been entered, display the resulting “story” back to the user.
    • You should have a function dedicated to the task of displaying the output “story”.
    • You can make up your own story, or just grab a short piece of text from somewhere and “edit” it into your program, deleting the words you intend on filling in with your own. (In the interest of “academic honesty”, be sure to cite the source of any text you choose to grab.)
    • Hint: Use multiple print statements; don’t try to cram everything into a single “print”!
  4. Make sure that your functions are well commented!

Submit

  • Your final Python program .py file (no .zip is necessary).

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper