Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Get input from user for their favorite restaurant and the food it serves, and print the stored information on two separate lines. Description Create a

Get input from user for their favorite restaurant and the food it serves, and print the stored information on two separate lines.
Description
Create a print statement to print multiple variables and text.
-regionepisode: /workspace$ python3 restaurant
at.py", line 3
favorite resturant
a
alid syntax
-regionepisode: /workspace$ python3 restaurant
int.py", line 1
avorite resturant: In
alid syntax
L-regionepisode: //workspace$ |
Objective
Learn to use the Python and print functions to get values into variables, and to print multiple variables and text.
Create a program to print the input variables with text in between on two separate lines. You will need to prompt the user for the favorite restaurant, save the input they give, prompt the user for a food at that restaurant, save what they give you, then print the appropriate message as shown below. Your input prompts can be anything you like, but you should make them sensible so the user knows what they are supposed to do.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions