Hi Audrey, you can use following methods to handle cookies in Python Selenium Webdriver:
driver.get("https://www.flipkart.com")
driver.get_cookies()
driver.get_cookie('past_orders')
cookie = {'name' : 'cart_order', 'value' : 'Iphone'}
driver.add_cookie(cookie)
driver.delete_cookie('past_orders')
driver.delete_all_cookies()