Hi Sonakshi, we can clear text of a textbox using Python Selenium Webdriver in the following way:
driver.get("http://youtube.com/")
driver.find_element_by_class_name('ytd-searchbox').send_keys('Python Tutorial')
driver.find_element_by_class_name('ytd-searchbox').clear()