Question
Write a program in Python 3 that imports an input.txt text file containing steps and outputs in the following format: and outputs a new output.txt
Write a program in Python 3 that imports an "input.txt" text file containing steps and outputs in the following format:
and outputs a new "output.txt" file containing the following text in the same format to the desktop:
1.The program must prompt the user to input the name and city, while automatically inputting the current date as the creation date. 2.The program must be able to utilize an input file with any number of steps and outputs, numbering them correctly in the steps section as well. The program must be able to pass a test input.txt file with dozens of steps and outputs in it.
12345678step:dothisstep0:outputonestep:dothisotherstep0:outputtwostep:dothisotherstepaswell0:outputthree name: x city: y creation date: z Steps: 1. do this step 2. do this other step 3. do this other step as well step "do this step" output \{ output one step "do this other step" output \{ output two s step "do this other step as well" output \{ output three \} End of textStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started