Create Professional Python Programs Using Argparse

preview_player
Показать описание
Using python and argparse we can create professional Python programs very quickly with the module argparse doing the heavy lifting. We have all seen the option --help / -h well they are built into argparse and of course we can create our own options. Managing data types is easy as we can set what type of data we can expect

import argparse
parser = argparse.ArgumentParser()

print("This is the result")
exit(0)
exit(0)
print("This is the result")
exit(0)
exit(0)

-~-~~-~~~-~~-~-
Please watch: "RHCSA 9 Working With Podman Containers"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

You could only increase the fonts to help old and blind people like me to see better 😛

paulosergioschlogl
Автор

I noticed your algebraic mistake when you solved the formula for Fahrenheit the moment you devided by 32 instead of adding 32.
You even said it correctly but somehow typed a slash instead of a plus sign.
But this is negligible since the objective of your video was to introduce the argparse module which you did splendidly.

othernicksweretaken
Автор

What is the IDE called you are using?
Was it PyCharme?
I see one big advantage of it was that you instantly had a drop down of feasible method names as you were typing.
For someone like me who is only coding in vim and not yet so familiar with most even essential Python classes/modules (I have a long Perl background but see the need to switch to Python) there is probably the need to toggle between my tmux terms of vim and pydoc someModule every now and then until I have learnt the functions and methods and their signatures by heart.

othernicksweretaken
Автор

Why I can't choose video resolution

chrisleon