Need programming help with Python

Nov 9th, 2015
Price: $50 USD

Question description


I'm looking for help to extend my previous lab using Python. Here is the previous lab below:

Lab 4 - Instructions

Due Nov. 9th, at the end of the day.

(Attached is a "starter sample". Notethat only reading the file is shown, see the "Notes" at the bottom.


  • Doing more with lists/dictionaries and introducing files.


  • This will extends the previous lab to allow the user to display the resulting story with several potential "dynamic" modifications to their input.


  1. Your program should read a "story template" from a file and write the output to a file.
    • The filenames for the input and output should be read from the "command line" when the program is launched.
    • For example: story_template.txt output_file.txt
  2. Prompt the user for at least 10 words or phrases and store each result in a Python "Dictionary" within the program.
    • You should have a separate function dedicated to this task   
  3. AFTER entering all of the words, ask the user how they would like their own words to show in the story (how you present the prompt is up to you):
  2. All lower case
  3. All Capitalized Case
  4. As entered (i.e., no changes)

  1. For each of the above choices, modify user entered terms in the dictionary indicated. Call your displayStory() function with story template and the user entered dictionary.
    • For example: displayStory(storyTemplateuserDictionary)
    • The results should be written to the screen and to the output file.

Remember: 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. But In the interest of Academic Integrity, be sure to cite the source of any text you choose to grab!



  • Your final Python program .py file
    1. Remember it should be able to run as a "command-line" application.
    2. Please call your program and be sure to include your name in the program comments.
Here is an example of lab 4:

Tutor Answer

(Top Tutor) nicholasKim
School: Cornell University

Studypool has helped 1,244,100 students

Review from student
" Outstanding Job!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1825 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors