Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Stephen Hansen Newsgroups: comp.lang.python Subject: Re: Python Madlibs.py code and error message Date: Wed, 27 Apr 2016 21:55:59 -0700 Lines: 12 Message-ID: References: <3cff626c-28a2-499c-9877-de2df4d459d0@googlegroups.com> <1461819359.3234904.591932537.54A7076B@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de rolmFeq/kwn+uCpxZrbG8gliGf4pwC2ftCQ19aumdHzQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'subject:code': 0.07; 'received:internal': 0.09; 'python': 0.10; 'subject:error': 0.11; 'wed,': 0.15; 'things.': 0.15; 'food,': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'year,': 0.22; 'stephen': 0.22; 'header:In- Reply-To:1': 0.24; 'separate': 0.27; 'print': 0.30; 'code': 0.30; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.40; 'your': 0.60; 'header:Message-Id:1': 0.61; 'story': 0.65 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=ixokai.io; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=Qjtaey3Yu+DEk7U/+cRxU8xI4iI=; b=RsQKuV ZT5Tq1WtvaC+6xzoqUU8aany0yQx/Hy0pvOK0igfN2Yr5LSJqQCNicwDK10/041M pk2PW0pH4Z4KCQ4r2Hu67hZ2df/V2V8/+TG2i/qMCekESLPbm3VlZQOT/J01yDR4 szKuAlBa7lUq7CuwM9EIoxtniGSd4nsYHs/rY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Qjtaey3Yu+DEk7U /+cRxU8xI4iI=; b=thGLnYhKxA09HZ1Z3ZtV0hYQ3Yv0Z9jYk2taMD1QbMFw1Yj XqyOtre8jfs/FfhkIJCNTbCIhBiTsOJoaGoXmO/sZMWRT83UAMP+l09nuV28qP+/ EVdcyR5+LvGajbIXMwTVemNEU5LcPvKD91NoXbp8+p5+LU/GA1Q7F+j9eXyU= X-Sasl-Enc: jwtM/2mj4w37/DzAnPYLyifLk3Uf2e2HEliIkWPWrG0c 1461819359 X-Mailer: MessagingEngine.com Webmail Interface - ajax-f1265324 In-Reply-To: <3cff626c-28a2-499c-9877-de2df4d459d0@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <1461819359.3234904.591932537.54A7076B@webmail.messagingengine.com> X-Mailman-Original-References: <3cff626c-28a2-499c-9877-de2df4d459d0@googlegroups.com> Xref: csiph.com comp.lang.python:107757 On Wed, Apr 27, 2016, at 09:37 PM, Cai Gengyang wrote: > print STORY % (Adjective1, name, Verb1, Adjective2, Noun1, Noun2, animal, > food, Verb2, Noun3, fruit, Adjective3, name, Verb3, number, name , > superhero_name, superhero_name, name, country, name, dessert, name, year, > Noun4) Python is case-sensitive. "Adjective1" and "adjective1" are separate things. In your code you're reading into "adjective1". -- Stephen Hansen m e @ i x o k a i . i o