Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #107757

Re: Python Madlibs.py code and error message

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Stephen Hansen <me+python@ixokai.io>
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 <mailman.173.1461819362.32212.python-list@python.org> (permalink)
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 <me+python@ixokai.io>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=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

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Python Madlibs.py code and error message Cai Gengyang <gengyangcai@gmail.com> - 2016-04-27 21:37 -0700
  Re: Python Madlibs.py code and error message Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-04-28 16:50 +1200
    Re: Python Madlibs.py code and error message Cai Gengyang <gengyangcai@gmail.com> - 2016-04-27 22:01 -0700
      Re: Python Madlibs.py code and error message Stephen Hansen <me+python@ixokai.io> - 2016-04-27 22:16 -0700
      Re: Python Madlibs.py code and error message Ben Finney <ben+python@benfinney.id.au> - 2016-04-28 15:32 +1000
      Re: Python Madlibs.py code and error message Stephen Hansen <me@ixokai.io> - 2016-04-27 23:50 -0700
      Re: Python Madlibs.py code and error message Ben Finney <ben+python@benfinney.id.au> - 2016-04-28 16:55 +1000
      Re: Python Madlibs.py code and error message Stephen Hansen <me@ixokai.io> - 2016-04-28 00:08 -0700
        Re: Python Madlibs.py code and error message Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-04-28 17:25 +1000
          Re: Python Madlibs.py code and error message Cai Gengyang <gengyangcai@gmail.com> - 2016-05-03 04:12 -0700
      Re: Python Madlibs.py code and error message Ben Finney <ben+python@benfinney.id.au> - 2016-04-28 17:17 +1000
  Re: Python Madlibs.py code and error message Stephen Hansen <me+python@ixokai.io> - 2016-04-27 21:55 -0700

csiph-web