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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Python per instance properties? Analog Kid Mac Programming 0 Jan 31, 2012 05:21 PM
Python and mac applications jangoforhire Mac Programming 1 Dec 4, 2011 05:38 AM
bash/python question lynkynpark86 Mac Programming 2 Jun 8, 2011 01:05 AM
Python terminal command? lynkynpark86 Mac Programming 2 May 28, 2011 04:28 PM
i.e. trobles with flex Cabbit Web Design and Development 4 Jul 27, 2007 09:26 AM


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

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

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