Open Kraft-Dinner opened 2 months ago
An example of the script being run could look something like:
Please enter a message and hit 'enter' This is my first message
Thank you _Please enter a message and hit 'enter'__ This is my second message
Thank you Please enter a message and hit 'enter' hits enter
Here are your messages: This is my first message This is my second message
Objective
Create a .py script in the "scripts" folder of the repo that can be run from the terminal using
python {script_name}.py
.This script should prompt the user to input any type of string (could represent a message, a link, numbers, etc.) and store the input so we can display it back to the user later on. We should continue to ask the user to input messages until they submit an empty message (ie. they just hit enter without inputting anything).
At that point we want to print all of the messages that the user submitted in the order that they were submitted, and then end the script.
NOTE: Use git version control while working through this script
Learning topics
Chmod
command and file permissions Python input/output to stdin Python datastructures Python loops/conditional statements (likely)