Do you want to install this script using brew?

wtorek, 12 lipca 2022 o 09:53:12 UTC+2 abhin...@snakescript.com napisaƂ(a):

> # importing required modules
> import argparse
>
> # create a parser object
> parser = argparse.ArgumentParser(description = "An addition program")
>
> # add argument
> parser.add_argument("add", nargs = '*', metavar = "num", type = int,
> help = "All the numbers separated by spaces will be added.")
>
> # parse the arguments from standard input
> args = parser.parse_args()
>
> # check if add argument has any input data.
> # If it has, then print sum of the given numbers
> if len(args.add) != 0:
> print(sum(args.add))
>
> it is CLI , please how to install it through brew .
>
>
>>>
>>>
>>>
>>>
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/196baed7-599d-4f86-b8e6-529f4b890811n%40googlegroups.com.

Reply via email to