Making a menu in Python

preview_player
Показать описание
In this tutorial we look at how to make a simple Python menu using a function and a while loop. This is for a text based interface.
Рекомендации по теме
Комментарии
Автор

Thank you so much!! So easy to follow. been fighting with it for days and now I have a perfectly functional menu!

unicornminded
Автор

Thank you. I'm 3 days in now and thanks to this I was able to finally make a menu. I have successfully made a little project to share with my friends that chats with them and then Rick rolls them.

incogneeto
Автор

Very helpful video! Thanks to you I will never have to struggle again!

csanindzsa
Автор

Excellent, straightforward video. This will really help me with my intro CS class. Thank you!

WhiskeredBope
Автор

Wow, you explain this so much better than my professor.

diablo
Автор

Thank you!! This video is great and goes right to the point with just enough examples!

LaDyViCk
Автор

Thank You so much @Andy Dolinski you have made my work so much easier!!!

kartikeymishra
Автор

Thank you helped me so much with my project!

andybulder
Автор

thanks a lot dude love ya, if i didn't find this video i would be awake until morning :3

SolTTeucas
Автор

Please guide, how to perform above task i.e menu program in class using List and other DS

balajivenkatraman
Автор

It was a pretty good example of using definitions. Thanks

soupie
Автор

Good tutorial. I ended up writing some reusable code to handle this. You just pass in a list of tuples, where each tuple has the option name and function reference and the menu system handles everything else, including printing the menu, validating user input and executing the function corresponding to the menu option.

cybersphere
Автор

thank you very much I was looking for that code hehehe ..

but what if you need when you choose option1 you go in list of option1 and when go back to main menu ?

Angry_Cat
Автор

Exactly what I want.. thanks for helping brother love from pakistan.

Wolf_...
Автор

It worked for me but then I got a lot of 'option 1 has been called' lines in the display when I run the code

isaacnjenga
Автор

I’ve got a problem where selecting option 1 will work as intended but will also print the “invalid option” response when there is no need to?

AlteredVisioned
Автор

Hello, is there a way to make it so that when you type an Option, you go to another page?

LeQuietkid
Автор

yes that's work if you use for selection option, but after that i got infinite loop

rayhanmrizki
Автор

My option 1 contains if/elif statements itself. I am not sure how to put all this code for option 1 in then let the program continue on in the options

lisawruck
Автор

Thanks sir for this really helpful video❤

xtyhtos