Make Menus In Python with While True Loop | Choose an Option in Python

preview_player
Показать описание
⬇️ *LEARN ON THE BEST LEARNING PLATFORMS (LINKS BELOW)* 😉💪 ⬇️

*SKILLSHARE*
_(Python, Web Dev, UI/UX Design, Music, Art, Animation and a lot more)_

*DATACAMP*
_(Python, ChatGPT, SQL, Power BI, and a lot more)_

*COURSERA PYTHON*
_(For beginners, Data Science, Data Analysis, AI, Cybersecurity and a lot more):_

*COURSERA WEB DEVELOPMENT*
_(Full Stack, Front-End, Back-End, Web Design and a lot more):_

Learn how to create a menu for your Python programs and also how to ask the user to choose among different options.
To do that we are going to use a while true loop and some user input validation.

If the video was helpful, let me know in the comments down below and also like the video so that other people can see it. Needles to say I really appreciate your support 💪❤️

📨 SUBSCRIBE so that you don't miss any new video:

🔗 RELATED CONTENT (videos, playlists, etc) 🔗

🤩 AFFILIATE LINKS 🤩

🧑🏻‍💻 ABOUT ME 🧑🏻‍💻

I'm Fabio, I started programming with Python a lot of years ago and I fell in love with this world.
I started this Youtube channel to help you during your own journey and I hope that my help can make you an amazing programmer who loves this world as I do.
Welcome on board!! 🚀

#pythonWithFabioMusanni #python #pythonforbeginners #pythontutorial #pythonprogramming #coding #programming
Рекомендации по теме
Комментарии
Автор

⬇️ *LEARN ON THE BEST LEARNING PLATFORMS (LINKS BELOW)* 😉💪 ⬇️

⚠️⚠️⚠️ In the program I used exit() for simplicity's sake but you should always use the following instead:
import sys
sys.exit()

*SKILLSHARE*
_(Python, Web Dev, UI/UX Design, Music, Art, Animation and a lot more)_

*DATACAMP*
_(Python, ChatGPT, SQL, Power BI, and a lot more)_

*COURSERA PYTHON*
_(For beginners, Data Science, Data Analysis, AI, Cybersecurity and a lot more):_

*COURSERA WEB DEVELOPMENT*
_(Full Stack, Front-End, Back-End, Web Design and a lot more):_

Thank you for the support!❤

FabioMusanni
Автор

Thanks, you are amazing. You have done these steps more easier withou starting with while.... and include while later
Great

ivansanzeev
Автор

Hello fabio! Thank you for this vid! but I have a question, after the first BREAK, I added my options (the if user_input..) I followed all your instructions and after I was done putting all the options, I tried running it but it only seems to break and ask for the name again of file/folder, I tried correcting again and again but It only breaks and I had no problems while putting the options, why does it not function well?

airemeklar
Автор

This has to be the best tutorial about menu making I've ever seen

cbmobile
Автор

Very Nicely Explained The Entire Expecting More Conceptual Videos....

structural-legacy
Автор

Yes you have nicely explained the concept....
Thanks for all your efforts...

structural-legacy
Автор

Hi Mate! Thanks for the video! It helped me understood while loops. However I may have one question. I was following it while using jupiter notebook and it did not work. It looped on "select an option" all the time. Do you know why? I had to do it in .py file to actually make it works.

maciejmaniu
Автор

Hi Fabio, thanks for your video! It has helped me a lot with an assignment.

I have a question, hope you can help. Let's say we wanted the program to start over once each of the options is done doing what it's meant to be doing, how would you do that? By placing the if-elifs inside the while True loop? I get really confused with loops (total newbie here!) so I don't know how to approach this. Any suggestions will be greatly appreciated!

Oh and for the record, I've subscribed, liked the video and watched the ads. :)

Thanks! ~ Jules

WildBite
Автор

Can i use method to run my python working code functions of 5 programs

Krooztech
Автор

Hello Fabio how do i fix because break isnt recognized or it is blocked by Pylance

johnwil
Автор

Hi there! I'm a pydroid 3 user (aka python for mobile user). If you follow the video in pydroid 3, it may occur a loop if you answer an invalid value/options. I need some solution for that and thanks for your video btw. Edit: I found a solution by now, you can add user_input=input("") right under print("Invalid option") so it wont continue to loop but instead telling us invalid option until it gets a valid option

Aternos_the_alfamous
Автор

Gracias. Tu video me ayudo con mi tarea.

LauraHerrera-cq
Автор

have you publish the entire code somewhere? thanks.

alexsmith
Автор

I tried this and it said 'break outside loop' when I tried it. My code matches perfectly, so can anyone tell me what's wrong? EDIT: It was because I didn't indent it enough, so just ignore this.

abritnamedsethinnit
Автор

Thank you for the help! I was stuck on while combos in pltw❤

nathanlunsford
Автор

I've got syntax error.. 'break' outside loop..

AndalusiaChromatic
Автор

Couldn't it be better if to use match/case conditions? I think it's more beautiful and professional

similartoothers
Автор

Why didn't he just do "print('\n** Menu **')" instead of putting an empty print() ? Just curious

Volcan-kfoz
Автор

I copied every damn Letter from him to test if it Was my fault that it didnt wirk but it still didnt work
I spent a lot of time for nothing

kcbrick