human
I am working on the file "PythonBootCamp/Complete-Python-Bootcamp-master/Milestone Project 2 Solution.ipynb".
The first task is:
Now I'll make a card class, it will have some basic ID functions, and then some functions to grab the suit and rank of the card.
Can you write Python code for it?

=====
Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.

# Create a card class
class Card:
    
    def __init__(self,suit,rank):
        self.suit = suit
        self.rank = rank
        
    def __str__(self):
        return self.suit + self.rank
    
    def grab_suit(self):
        return self.suit
    
    def grab_rank(self):
        return self.rank
    
    def draw(self):
        print (self.suit + self.rank)