Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Help with Pygame GUI
Post: Help with Pygame GUI

I am creating a house GUI using Pygame in python. i have been getting an error and i dont know how to solve it. the code is below import pygame, os, time, sys, picture from pygame.locals import * ...
shaheduk323 GUI 1 2,310 May-06-2018, 01:39 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

I give up. i had enough of the coding and whatever i define its the same error. my deadline is 11:55pm tonight and so i am too late just thought to tell you. the error kept on coming up even if i trie...
shaheduk323 Homework 28 13,430 Dec-17-2017, 06:48 PM
    Thread: unit 18 codes
Post: RE: unit 18 codes

redit your thread and add error using the red cross button in quick reply. also enter the whole code
shaheduk323 Homework 7 5,031 Dec-17-2017, 06:46 PM
    Thread: unit 18 codes
Post: RE: python codes

No error? @Miss_Kaur that is a bit weird. you need to send the error code too
shaheduk323 Homework 7 5,031 Dec-17-2017, 06:28 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

(Dec-17-2017, 02:59 PM)Terafy Wrote: This is your function def newbalances(initialbalance, productname, advertisingcost): newbalance = initialbalance - advertisingcost - ptoductname * wholesalep...
shaheduk323 Homework 28 13,430 Dec-17-2017, 03:07 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

yes wholesale price is global
shaheduk323 Homework 28 13,430 Dec-17-2017, 03:01 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

so how do i call it
shaheduk323 Homework 28 13,430 Dec-17-2017, 02:46 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

(Dec-17-2017, 01:48 PM)Terafy Wrote: In plain English... you defined the function: def newbalances(initialbalance, productname, advertisingcost): ...[python] But you didn't called the function...
shaheduk323 Homework 28 13,430 Dec-17-2017, 02:08 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

(Dec-17-2017, 12:39 PM)j.crater Wrote: You are following the instructions fine, but you have logical errors in the program. I am trying to have you spot the errors yourself and learn from that. Read...
shaheduk323 Homework 28 13,430 Dec-17-2017, 01:02 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

i am trying to follow this If the shop runs out of stock before the end of the 30 days, they cannot make any more sales until the 30 days are over and more stock is purchased. If the balance goes b...
shaheduk323 Homework 28 13,430 Dec-17-2017, 12:30 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

I still do not understand what to put in the newbalance. i already have newbalance defined.
shaheduk323 Homework 28 13,430 Dec-17-2017, 12:00 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

(Dec-16-2017, 10:21 PM)j.crater Wrote: You returned the function, not the value (of variable) which the function calculated (advertisingcost vs. advertcost, big difference!) Thanks so much finally i...
shaheduk323 Homework 28 13,430 Dec-16-2017, 10:38 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

(Dec-16-2017, 08:36 PM)j.crater Wrote: User inputs a value, that is stored into a variable. And you can return the value of that variable from a function, as you did in other functions.i did that an...
shaheduk323 Homework 28 13,430 Dec-16-2017, 10:05 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

Quote:Modify the function so it will return a value. That way when you will be able to multiply randnum with another number - the one your function (advertisingcost) returns. i cannot get it to retur...
shaheduk323 Homework 28 13,430 Dec-16-2017, 07:42 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

Quote:What you probably want instead of advertisingcost is the value that function returns. For that, you will need to call that function (function name with parenthses) and modify that function, so i...
shaheduk323 Homework 28 13,430 Dec-16-2017, 07:07 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: RE: Unit 18: Procedural Programming Assignment (Sh...

initialbalance = 500 wholesale = 20 import random # "Procedures used in the program" def balance(): print ("the initial balance is £ " +str(totalmoney)) return balance def numofproduct(): ...
shaheduk323 Homework 28 13,430 Dec-16-2017, 06:25 PM
    Thread: Unit 18: Procedural Programming Assignment (Shop Simulation)
Post: Unit 18: Procedural Programming Assignment (Shop S...

Unit 18: Procedural Programming Assignment (Shop Simulation) Specification The company are involved in several innovative projects and are currently in the process of obtaining a contract for a game...
shaheduk323 Homework 28 13,430 Dec-16-2017, 06:00 PM

User Panel Messages

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