Run Python Scripts With Command Line Arguments Using sys.argv (With Examples)
HTML-код
- Опубликовано: 6 сен 2024
- 💻 Get the Source Code and support the channel ❤️: www.buymeacoff...
⬇️ LEARN ON THE BEST LEARNING PLATFORMS (LINKS BELOW) 😉💪 ⬇️
☕ Buy me a coffee: www.buymeacoff...
😍 One-off donation: www.paypal.me/...
SKILLSHARE
(Python, Web Dev, UI/UX Design, Music, Art, Animation and a lot more)
🔗 skillshare.eqc... (Affiliate)
DATACAMP
(Python, ChatGPT, SQL, Power BI, and a lot more)
🔗 datacamp.pxf.i... (Affiliate)
COURSERA PYTHON
(For beginners, Data Science, Data Analysis, AI, Cybersecurity and a lot more):
🔗 imp.i384100.ne... (Affiliate)
COURSERA WEB DEVELOPMENT
(Full Stack, Front-End, Back-End, Web Design and a lot more):
🔗 imp.i384100.ne... (Affiliate)
Learn how to use command line arguments in your python programs with sys argv.
🎥 Argparse Video: • Python Argparse Module...
🎥🔥 RECOMMENDED VIDEOS TO WATCH 🎥🔥
- Argparse Complete Guide: • Python Argparse Module...
- Validate User Inputs: • How to Validate User I...
- Match/Switch Statement Complete Guide: • MASTER the Match State...
- OOP & Classes Series: • 🐍 OOP & Classes in Pyt...
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:
www.youtube.co...
🤗 BIO PAGE (contacts, etc): solo.to/fabiom...
Create Your Bio Page (10% OFF Upgraded Plans 😉): solo.to/inv/ND...
🔗 RELATED CONTENT (videos, playlists, etc) 🔗
Python Playlist: • 🐍 Learn Python With Fa...
🤩 AFFILIATE LINKS 🤩
Create Your Bio Page (10% OFF Upgraded Plans): solo.to/inv/ND...
🧑🏻💻 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 RUclips 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 #pythonforbeginners #python #pythontutorial #pythonprogramming #coding #programming
💻 *Source Code:* www.buymeacoffee.com/fabiomusanni/e/187994
⬇️ *LEARN ON THE BEST LEARNING PLATFORMS (LINKS BELOW)* 😉💪 ⬇️
☕ *Buy me a coffee:* www.buymeacoffee.com/fabiomusanni
❤️ *Support me monthly:* www.patreon.com/FabioMusanni
😍 *One-off donation:* www.paypal.me/FabioMusanni/
*SKILLSHARE*
_(Python, Web Dev, UI/UX Design, Music, Art, Animation and a lot more)_
🔗 skillshare.eqcm.net/5gxzD2 (Affiliate)
*DATACAMP*
_(Python, ChatGPT, SQL, Power BI, and a lot more)_
🔗 datacamp.pxf.io/vN1bDj (Affiliate)
*COURSERA PYTHON*
_(For beginners, Data Science, Data Analysis, AI, Cybersecurity and a lot more):_
🔗 imp.i384100.net/k0Nk60 (Affiliate)
*COURSERA WEB DEVELOPMENT*
_(Full Stack, Front-End, Back-End, Web Design and a lot more):_
🔗 imp.i384100.net/EKWxBW (Affiliate)
Thank you for the support!❤
🎥 Argparse Video: ruclips.net/video/idq6rTYqvkY/видео.html
🎥All my videos about Python: ruclips.net/p/PLs8qUrmRvaR0IT4IwJl-LSweAdACW-yLK
Very nice video showcasing different examples. Can we not use match statement here so that it can be easy and readable?
Thank you for the comment! 🤗
This video is just an introduction, of course you can use the Match Statement to make things even better.
I actually made a guide for the match statement (ruclips.net/video/RvW1zJcd6oA/видео.html) and also a video where I use the match statement to create commands like the ones in this video (ruclips.net/video/hnmqxC6fxQA/видео.html). Of course in that video I didn't use sys.argv but I think you can take some inspiration from there as well 💪😊
Thank you for making the screen grab large enough to read from mobile :)
Thank you for the comment! Really appreciated! 🤩 💪
Although it takes me more time to edit the video, I actually do that for people watching from mobile, so glad to read your comment! 🤗
Very useful and good examples, thanks.
Thank you so much for the comment! I'm glad the video was useful 💪😍
What is sys and how do you use it?