Question: *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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!