Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 5, 2012, 10:44 AM   #1
MBPFAN
macrumors newbie
 
Join Date: Feb 2012
Python troble

I'm learning Python IDLE. I'm trying to write a very simple text game. I'm one error away to have it working.
SyntaxError: invalid syntax
items = ["Cup","Vase","Table","Lamp","Bowl","Door"]
(Bold is highlighted) All I want to do is create a list. Somebody please help.
MBPFAN is offline   0 Reply With Quote
Old Feb 11, 2012, 01:13 PM   #2
designguy79
macrumors 6502
 
Join Date: Sep 2009
Location: Michigan
Try a different name; maybe "items" is a reserved name?

Also, what is on the line above it? Many times, the context can help a lot.
__________________
Do you use Flickr? Look me up there or at Dynamite360.com
designguy79 is offline   0 Reply With Quote
Old Feb 11, 2012, 01:44 PM   #3
calderone
macrumors 68040
 
calderone's Avatar
 
Join Date: Aug 2009
Location: Seattle
The syntax of that line is fine. We need more details.
__________________
ACSA, ACMT
calderone is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Python Programming FDomin16 Mac Programming 3 Apr 8, 2013 10:59 AM
Good Python 3.3 course vmachiel Mac Programming 2 Mar 11, 2013 03:42 AM
Python to X Code DShap5 Mac Programming 12 Mar 8, 2013 11:15 AM
Printing with Python lpeedin Mac Programming 1 Oct 20, 2012 03:44 PM
Python 3.2.3 dboxall123 Mac Programming 4 Sep 27, 2012 10:53 AM

Forum Jump

All times are GMT -5. The time now is 03:13 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC