What csv.DictReader gives you for test data
QuizEasy-MediumPython onlyAsked in: Accenture, Capgemini, Infosys, SaaS Labs, Swiggy, TCS, Wipro
The file users.csv has the header user,age and one row ravi,30. What does csv.DictReader give for that row?
- A dictionary from column name to text: user is "ravi" and age is "30" (a string)
- A tuple of values: ("ravi", 30)
- The age as the integer 30
- The header row first, then the data rows
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.