Python Forum
Why is it wrong? Ask for help!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why is it wrong? Ask for help!
#1
import csv

filename='sitka_weather_07-2014.csv'#The file is not wrong
with open(filename) as file:
	reader=csv.reader(file)
	header_row=next(reader)

	for index,column_header in emumerate(header_row):
		print(index,column_header)
Error:
NameError: name 'emumerate' is not defined
Reply
#2
emumerate -> enumerate
Reply
#3
solved. Thank you
I didn't find it...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Am I wrong or is Udemy wrong? String Slicing! Mavoz 3 2,698 Nov-05-2022, 11:33 AM
Last Post: Mavoz
  python gives wrong string length and wrong character thienson30 2 3,071 Oct-15-2019, 08:54 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020