I need help
Note: It`s a python
Class Implementationa) Implement aclassPlayCard with three attributes,rank, suit, and players.b) Implement aninit method with an optional parameter type: 1) Set the default value ofrank to "queen",suit to "hearts" andplayers to 4.c) Implement adisplay method to print the values ofrank, suit, and players as the example output below.d) Instantiate two objects of type PlayCard,treasure with arguments "king", "diamonds", 2, andbanker without any arguments.e) Calldisplay() to printrank, suit, and players oftreasure andbanker.Just make sure to precisely match the outputformat below.Write your code in theANSWER area provided below (must includecomments if using code is not covered in the course)ExampleOutputRSP: king | diamonds | 2RSP: queen | hearts | 4
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here