1. Engineering
  2. Computer Science
  3. i need help with argparse in python how do i...

Question: i need help with argparse in python how do i...

Question details

I need help with argparse in python. How do I make it so that the only valid inputs using argparse are:

Positive float numbers.

Binary operators: /, *, -, +

And "sqrt" for square root.

No negative numbers or letters(besides "sqrt"). And print an error if it detects an invalid input.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution