Question: 1. Write a program(WAP) in which you will be using a python argparse module to parse the input arguments. There will be three inputs 1)

1. Write a program(WAP) in which you will be using a python argparse module to parse\ the input arguments. There will be three inputs 1) string 2) int 3) float\ Example >>python3 arguments.py hello 007 9.11\ [Name of the file should be argumnets.py](1point)\ 2. WAP to demonstrate ABC. Create a base class and inside of this base class there\ should be two abstract methods (use @bastractmethod decorator). This base class\ should be inherited by two other classes which will implement the methods inside of\ the base class. Come up with your own classes. Please do not create a class called\ vehicle and inherit it into motorbike and car.\ [Name of the file should be abc_class.py](1point)\ 3. Rewrite the above program using the protocol method\ [Name of the file should be protocol.py](1point)\ 4. WAP a program in which the class is using @dataclass decorator. Come up with\ your own idea of a data class.\ [Name of the file should be dataclass.py](1point)\ 5. Extend the above program (program-4) to include an extra function inside of the\ @dataclass class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!