Python troble

Discussion in 'Web Design and Development' started by MBPFAN, Feb 5, 2012.

  1. MBPFAN macrumors newbie

    Joined:
    Feb 5, 2012
    #1
    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.
    :confused:
     
  2. designguy79 macrumors 6502

    Joined:
    Sep 24, 2009
    Location:
    Michigan
    #2
    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.
     
  3. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #3
    The syntax of that line is fine. We need more details.
     

Share This Page