0

How do I create a menu in puthon

Sample run Stem center temperature project Name Main menu ------------------ 1 - process a new data file 2 - choose units 3 - edit room filter 4 - show summary statistics 5 - Show temperature by date and time 6 - show histogram of temperature 7 - quit What is your choice? 1 New file function called

21st Apr 2022, 4:38 AM
Thomas
1 Resposta
+ 1
With print() call to display it. Use while statement to loop around it. Use input() to get the user's answer. But do not expected it to work correctly here as the program runs remotely, you specify the input before it starts, and it displays the output after it is complete.
21st Apr 2022, 5:25 AM
John Wells
John Wells - avatar