Question: Python code is required: Create a class named Coin and attributes the value of the coin and the year it was created. Implement a method
Python code is required:
Create a class named Coin and attributes the value of the coin and the year it was
created.
Implement a method in the above class which flipsthrows the respective coin and
returns either "Head or "Tail".
Implement a subclass of the above class named EuroCoin which includes a new
attribute for the currency's country of origin.
Implement a method in the EuroCoin class that converts the coin value to a different
currency based on the exchange rate.
A test is required.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
