Python Forum
Python 3.6.5 syntax error in IDLE
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python 3.6.5 syntax error in IDLE
#1
Trying to use IDLE in Python 3.6.5 but receiving sytax error at the top line.

Python 3.6.5 (default, Jan 16 2019, 21:12:16) 
[GCC 7.3.0] on linux
Type "copyright", "credits" or "license()" for more information.
>>> import csv
>>> with open('/home/bob/Python_data_sets/names.csv', 'r') as csv_file:
	csv_reader = csv.reader(csv_file)
        for line in csv_reader:
                print(line)
Syntax error highlights the number 6 in the first line when I run "Check Module." Any thoughts?
Reply


Messages In This Thread
Python 3.6.5 syntax error in IDLE - by loren41 - May-08-2019, 08:42 PM
RE: Python 3.6.5 syntax error in IDLE - by Larz60+ - May-08-2019, 09:49 PM
RE: Python 3.6.5 syntax error in IDLE - by loren41 - May-10-2019, 06:24 PM
RE: Python 3.6.5 syntax error in IDLE - by loren41 - May-10-2019, 07:14 PM
RE: Python 3.6.5 syntax error in IDLE - by snippsat - May-10-2019, 07:39 PM
RE: Python 3.6.5 syntax error in IDLE - by loren41 - May-11-2019, 02:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  World Clock syntax error OscarBoots 1 193 May-03-2024, 05:20 AM
Last Post: snippsat
  Why can I not see the code correctly in Python IDLE.? Trump 8 751 Apr-04-2024, 07:47 AM
Last Post: jonesphedra
  Syntax error for "root = Tk()" dlwaddel 15 1,297 Jan-29-2024, 12:07 AM
Last Post: dlwaddel
Photo SYNTAX ERROR Yannko 3 439 Jan-19-2024, 01:20 PM
Last Post: rob101
  Syntax error while executing the Python code in Linux DivAsh 8 1,692 Jul-19-2023, 06:27 PM
Last Post: Lahearle
  Code is returning the incorrect values. syntax error 007sonic 6 1,270 Jun-19-2023, 03:35 AM
Last Post: 007sonic
  Launch Python IDLE Shell from terminal Pavel_47 5 1,292 Feb-17-2023, 02:53 PM
Last Post: Pavel_47
  syntax error question - string mgallotti 5 1,368 Feb-03-2023, 05:10 PM
Last Post: mgallotti
  Syntax error? I don't see it KenHorse 4 1,320 Jan-15-2023, 07:49 PM
Last Post: Gribouillis
  Syntax error tibbj001 2 942 Dec-05-2022, 06:38 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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