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


Groups > comp.lang.python > #99173

Re: error help import random

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: error help import random
Date Sat, 21 Nov 2015 04:30:42 +1100
Lines 15
Message-ID <mailman.11.1448040645.2291.python-list@python.org> (permalink)
References <8b0ec311-ab7f-429d-877f-d205ad6008d9@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de KzR3gnrQPuKOVoDTriwO3AV9sz31Znv1PG6i20WmKDPg==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; '21,': 0.07; 'subject:help': 0.07; 'cc:addr:python-list': 0.09; 'python.': 0.11; 'subject:error': 0.11; 'output': 0.13; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'input.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:import': 0.16; 'subject:random': 0.16; 'wrote:': 0.16; 'why.': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'wrote': 0.23; 'sat,': 0.23; 'import': 0.24; 'header:In-Reply-To:1': 0.24; 'error': 0.27; 'message- id:@mail.gmail.com': 0.27; 'cookie': 0.29; 'invoke': 0.29; 'code:': 0.29; 'random': 0.29; 'error.': 0.31; 'run': 0.33; 'problem': 0.33; 'received:google.com': 0.35; 'could': 0.35; 'nov': 0.35; 'should': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'display': 0.37; 'received:209': 0.38; 'someone': 0.38; 'identify': 0.61; 'show': 0.62; 'is.': 0.63; 'fortune': 0.66; 'here': 0.66; 'actually,': 0.84; 'chrisa': 0.84; 'riley': 0.84; 'to:none': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=jLfu+daCbWwgbBFPsHcyDV9zR0ab6aonPXvBKnOGHtk=; b=GgFQsaflVrlcZnQWTvW1Lvr1G2FGJkmIzAYID4tdE/HvuDMQZTCef7p14anFMrhzdm 78NXGf/2XDb5c95LW6GfIjXuFuk3eGjgrcuyVmk0AiwdC1wIBDFaFS9lXNJJf0yt5TJK rX67Bq5rWYJxUjkeGRrBo5Vqvg0RRr7hViNgmpHhpP7uRjCLhdGJbSG4Qro2FE02qgPY vWlMnf2YqWjSgs3Mx8mu1RhKcXaUFqRK/euwzf0g7kP/vcwZzTallMz08bjW76w7Zlnw pC1icrrPN9xNCjJjH6YK5BartV6Rkp6BM5CRtUWmz5Gx45FvTNmVUfU5FSIEPrWOIZuY Qxyg==
X-Received by 10.107.3.163 with SMTP id e35mr13819996ioi.157.1448040642696; Fri, 20 Nov 2015 09:30:42 -0800 (PST)
In-Reply-To <8b0ec311-ab7f-429d-877f-d205ad6008d9@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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>
Xref csiph.com comp.lang.python:99173

Show key headers only | View raw


On Sat, Nov 21, 2015 at 4:22 AM, Dylan Riley <dylan.riley@hotmail.com> wrote:
> This is my fortune cookie program i wrote in python.
> the problem is it will not run past the first line of input.
> could someone please identify the error and explain to me why.
> here is the code:
>
> #the program silulates a fortune cookie
> #the program should display one of five unique fortunes, at randon, each time its run
>
> import random

Actually, you could help us identify the error. What happens when you
run it? Show us exactly how you invoke it and what the output is.

ChrisA

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


Thread

error help import random Dylan Riley <dylan.riley@hotmail.com> - 2015-11-20 09:22 -0800
  Re: error help import random Chris Angelico <rosuav@gmail.com> - 2015-11-21 04:30 +1100
  Re: error help import random Peter Otten <__peter__@web.de> - 2015-11-20 18:57 +0100
  Re: error help import random Ian Kelly <ian.g.kelly@gmail.com> - 2015-11-20 11:10 -0700
  Re: error help import random Terry Reedy <tjreedy@udel.edu> - 2015-11-20 15:15 -0500
    Re: error help import random Rob Gaddi <rgaddi@technologyhighland.invalid> - 2015-11-20 23:03 +0000
      Re: error help import random Dylan Riley <dylan.riley@hotmail.com> - 2015-11-20 19:26 -0800
  Re: error help import random Seymore4Head <Seymore4Head@Hotmail.invalid> - 2015-11-20 18:05 -0500

csiph-web