How can add double quotes in string using python

  api, json, python

sorry for not describing the problem in detail.
The problem is displaying the "values" I get from the json in double quotes.

ex: "9000-123"
Would you help me with this topic?

empty = {‘reservation-num’: ‘9000-123’, ‘receipt-num’: ‘001’, ‘bond-date’: ‘12.12.2000’, ‘receipt-time’: ’20:20′, ‘numberof-items’: ‘1,00’, ‘item-num’: ‘10.234.09’, ‘item-designation’: ‘Hühnersuppe’, ‘vat-rate-in-percent’: ‘16,00’, ‘gross-unit-price-of-the-item’: ‘9,50’, ‘total-gross-amount-of-the-receipt’: ‘9,50’, ‘currency-sembol’: ‘DEM’, ‘clerk-num’: ’12’, ‘clerk-name’: ‘Elif’}

for emp in h3cashin_data:
    var_reservation = emp["reservation-num"]
    csvwriter.writerow(emp.values())

Source: Python Questions

LEAVE A COMMENT