i m not able to use this .append function even after the syntax is correct
import pandas as pd
import xlsxwriter



cars = {'Brand': ['Honda Civic','Toyota Corolla','Ford Focus','Audi A8'],
        'Price': [22000,25000,27000,35000]}

df = pd.DataFrame(cars, columns = ['Brand', 'Price'])

def add():
    ans = input ("Want to add more data.?(y/n):")
    if (ans=='y'):
        car_name = input ("Enter name:")
        price = input ("Price:")
        df2 = pd.DataFrame({'Brand' : [car_name],
                            'Price' : [price]})
        df.append(df2, ignore_index = True) 
        
        add()
        
add()

df = pd.DataFrame(cars, columns = ['Brand', 'Price'])
#### Expected Output
Want to add more data.?(y/n):y

Enter name:Bugatti

Price:789456

Want to add more data.?(y/n):n
            Brand  Price
0     Honda Civic  22000
1  Toyota Corolla  25000
2      Ford Focus  27000
3         Audi A8  35000
4          Bugatti  789456


#### Output of ``pd.show_versions()``
Want to add more data.?(y/n):y

Enter name:Bugatti

Price:789456

Want to add more data.?(y/n):n
            Brand  Price
0     Honda Civic  22000
1  Toyota Corolla  25000
2      Ford Focus  27000
3         Audi A8  35000

<details>

here i m not able to use this .append function even after the syntax is correct can anyone plz help me out here i have sucessfully installed pandas also and i m running it in spyder

</details>
