Can you help me solve the Python problem?
Objectives:
Develop an object oriented program
Code and test a reusable class
Choose instance variables and class variable(s)
More practice with a dictionary
Material from:
Horstmann Chapter 9, or
Zyante ebook Chapter 9
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Define a class where one object of the class represents oneplaying card. Your class should have the following FIVEmethods:
1) __init__(self, rank, suit)
rank is a number in the range 1-13 indicating the ranks Acethrough King, and suit is a single character “d” “c”, “h”, or “s”indicating the suit (diamonds, clubs, hearts, or spades). Thismethod creates a Card object that stores the rank(a number) andsuit(a letter) as instance variables.
2) getRank(self)
Returns
PayPal Gateway not configured
PayPal Gateway not configured