Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: A question about global variables
Post: RE: A question about global variables

Ok, then could you please try to explain to me why in line 137 maximum_amount prints the wrong amount, Thanks import random import sys import time def final_amount_2(): global maximum_amount m...
Goldberg291 General Coding Help 3 4,053 Feb-02-2017, 09:35 PM
    Thread: A question about global variables
Post: A question about global variables

A quick question on global variables I understand that global variables cannot not be accessed outside of a function but is there anyway I could access a global variable outside of a function? Thanks...
Goldberg291 General Coding Help 3 4,053 Feb-02-2017, 09:12 PM
    Thread: Need a little more help in a Choose Your Own Adventure Program
Post: RE: Need a little more help in a Choose Your Own A...

The computer says that when I say maximum_amount * .2, it gives no effect, why is this. Thanks-Goldberg291 import random import sys import time maximum_amount = 250,000 end_maximum_amount = maximum_a...
Goldberg291 General Coding Help 13 18,716 Jan-31-2017, 01:42 AM
    Thread: Need a little more help in a Choose Your Own Adventure Program
Post: RE: Need a little more help in a Choose Your Own A...

But how do you make an else statement do two things? Nevermind I figured out how
Goldberg291 General Coding Help 13 18,716 Jan-31-2017, 12:17 AM
    Thread: Need a little more help in a Choose Your Own Adventure Program
Post: Need a little more help in a Choose Your Own Adven...

Keep in mind before you read any of this, I am a beginner and do not know much about coding or python. So if you run this it will run fine but I wanted to add something.  The thing I want to add at th...
Goldberg291 General Coding Help 13 18,716 Jan-30-2017, 10:51 PM
    Thread: Need a little more help in a Choose Your Own Adventure Program
Post: RE: Need help in a Choose Your Own Adventure Progr...

For example if somebody chose Harry, ben, amelia, and beetle, it would print out print("Harry has failed his job but ben and amelia completed their job very well, but beetle also failed his job"). Th...
Goldberg291 General Coding Help 13 18,716 Jan-30-2017, 12:11 AM
    Thread: Need a little more help in a Choose Your Own Adventure Program
Post: RE: Need help in a Choose Your Own Adventure Progr...

Thanks to all who responded, I took Ofnuts advice and fixed the code, but I still don't understand how I to make the program print something different based on what combination of paths you took. Than...
Goldberg291 General Coding Help 13 18,716 Jan-29-2017, 09:24 PM
    Thread: Need a little more help in a Choose Your Own Adventure Program
Post: Need help in a Choose Your Own Adventure Program

Keep in my mind before you read this I just started coding and using python in the past week. Ok so I decided I wanted to create a choose your own adventure in python.  I am almost finished with this...
Goldberg291 General Coding Help 13 18,716 Jan-29-2017, 07:56 PM

User Panel Messages

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