well I'm brand new to Python and I'm really struggling to solve the following puzzle. Namely, I'm writing a script that's supposed to take and process arguments from the command line in the following different cases:
--X x1 x2 x3
--X range xmin xmax
First command should do all the calculations in points x1, x2, x3. And when a user issues the second command it should do the same calculations in [Xmin, Xmax]. And "range" is a control word here implying that the calculations will be done in range. X is parameter's name.
Namely, when I issue the first command, my script should calculate I don't really know how to go about it, everything I tried didn't work the way I want it to...
Any help would be appreciated! Thank you!