Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started