Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: if statement and in operator problem
Post: RE: if statement and in operator problem

random.choice worked for my random story generator.
bobger General Coding Help 5 3,947 Nov-30-2017, 06:50 PM
    Thread: if statement and in operator problem
Post: RE: if statement and in operator problem

I forgot to mention I am using python 3.6.3.
bobger General Coding Help 5 3,947 Nov-30-2017, 05:15 PM
    Thread: if statement and in operator problem
Post: RE: if statement and in operator problem

this is the output of my python program sometimes. man wounds monster and gets his arm cut off with it's sharp spikes. talks about it with his girlfriend and friends over a few drinks about his batt...
bobger General Coding Help 5 3,947 Nov-30-2017, 03:02 PM
    Thread: if statement and in operator problem
Post: if statement and in operator problem

can i use a if statement and in operator to trigger the code corb = random.randrange(3) print('talks about it with ' + talks[corb] + ' about his battle' + '.')full code is import random fight =("man ...
bobger General Coding Help 5 3,947 Nov-30-2017, 01:08 PM
    Thread: weird error in random sentence generator
Post: RE: weird error in random sentence generator

thankyou.nice to know.I did not see that.
bobger General Coding Help 9 5,574 Nov-29-2017, 07:34 PM
    Thread: weird error in random sentence generator
Post: RE: weird error in random sentence generator

I had to lower random.randrange(0,5) to random.randrange(0,4)
bobger General Coding Help 9 5,574 Nov-29-2017, 03:06 PM
    Thread: weird error in random sentence generator
Post: RE: weird error in random sentence generator

what do you mean by," Can you identify the program in your error message (if_ranner.py)?" instructions please.
bobger General Coding Help 9 5,574 Nov-29-2017, 07:51 AM
    Thread: weird error in random sentence generator
Post: RE: weird error in random sentence generator

it keeps showing me different errors sometimes when I run it.did you try running the python program over and over to see what happens.try running it tweleve times.
bobger General Coding Help 9 5,574 Nov-29-2017, 12:27 AM
    Thread: weird error in random sentence generator
Post: RE: weird error in random sentence generator

That was all I saw.
bobger General Coding Help 9 5,574 Nov-28-2017, 10:39 PM
    Thread: weird error in random sentence generator
Post: weird error in random sentence generator

i put all the lists on top and the error still occurs.I am using python3.6.3 on windows 10. sometimes i get this error sometimes not when i run this code over and over. Error:Traceback (most recent ca...
bobger General Coding Help 9 5,574 Nov-28-2017, 09:46 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020