Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*PYTHON*: Does my current code make sense/satisfy the assignment requirements? Please help me. Design and write the Python code for a program that asks the

*PYTHON*: Does my current code make sense/satisfy the assignment requirements? Please help me.

Design and write the Python code for a program that asks the user for their name and 3 simple questions. Then use at least 3 decision structures to display custom output based on what the user has entered. Be as creative as you want with your questions and outcomes.

The program must:

  • use at least 3 decision structures (if/else or if/elif/else)

  • have at least 3 different possible outcomes

Note: Input validation is not required, so assume the user will enter answers that make sense for the questions you ask.

MY CURRENT WORK :

name = (input('What is your name?')) if name: print ('That is an amazing name!') mood = (input('How are you feeling?')) if mood: print ('I have also felt the same, you win some and you lose some.') hobby = (input('What do you like to do?')) if hobby: print ('That sounds like so much fun!') vision = (input('Can you see well?')) if vision: print ('Interesting, everyone can use a pair of glasses. Try it out!') age = int(input('How old are you?')) if age <= 16: print ('You are young! So much to learn.') elif age <= 18: print ('You will be able to rent hotel rooms and vehicles soon!') else: print ('You are in the prime years of your life! Start studying!') print ('Thank you, that is all the information I needed! Self-destruct in 3, 2, 1...')

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

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions