Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
2 years, 11 months ago
Trying to store the header row of
csv file, i.e. it's first row in a list after reading the file using
filednames() but none worked.
Could anyone guide me how to achieve this?
Thanks to anyone who gives their time.
Apr 24, 2020 at 19:18
7 5 5 bronze badges
header = next(<reader variable>)
The next function should give you the 1st row of the file, but I am unsure if this is the answer to your situation as you did not provide any code.
Apr 24, 2020 at 22:33
Ojou Nii Ojou Nii
711 2 2 silver badges 6 6 bronze badges
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only