LAB Intro to Python, programming homework help

LAB Intro to Python, programming homework help

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 function dedicated 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.)
  4. Make sure that your functions are well commented!

  5. Your program should run from a “command line” when executing the program LAB3.py
    • (We’ll see in class how to do this…. it’s easy!)
    • This will actually happen “automatically”, but don’t worry about it for now.

check the LAB3.zip frist and see if its match the same lab or not

"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