Please assist to create menu function by using input() in Python. the output is like attached image. if input entered 1 the program keeps going for next question, but if entered option 2 the program...


Please assist to create menu function by using input() in Python.


the output is like attached image.


if input entered 1 the program keeps going for next question,


but if entered option 2 the program should return none.


the program I wrote below is only for input option "1"


but if entered option 2, I don't know how to stop the program.


Thanks.


-------------------------------------------------------------------


print('-'*75,'Student Report Menu Options','-'*75,\


      '1. Report grade for a student','2. Quit',sep='\n')


x = input()


print('Please enter the student number: ')


y = input()



Student Report Menu Options<br>1. Report grade for a student<br>2. Quit<br>1<br>Please enter the student number:<br>

Extracted text: Student Report Menu Options 1. Report grade for a student 2. Quit 1 Please enter the student number:

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here