Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python
Post: RE: Python

I want the gate to open after the car has touched the gate. Could someone please help.
kanwal121 Game Development 2 20,678 May-10-2018, 06:34 PM
    Thread: Python
Post: Python

import pygame, os, time, sys, picture, text from pygame.locals import * #These are to import the classes. from sys import exit as sysExit os.environ['SDL_VIDEO_WINDOW_POS'] = "%d,%d" % (10,30) #This ...
kanwal121 Game Development 2 20,678 May-10-2018, 06:33 PM
    Thread: Unit 18 Procedural Programming Python
Post: RE: Unit 18 Procedural Programming Python

import random #this is to import the random number for calculations initialBalance = 10000 #this is the initial balance £1000 wholeSalePrice = 40 #this is the wholesale price shopSalePrice...
kanwal121 Homework 4 3,976 Dec-21-2017, 06:39 PM
    Thread: Unit 18 Procedural Programming Python
Post: Unit 18 Procedural Programming Python

import random #this is to import the random number for calculations initialBalance = 10000 #this is the initial balance £1000 wholeSalePrice = 40 #this is the wholesale price shopSalePrice...
kanwal121 Homework 4 3,976 Dec-21-2017, 05:53 PM
    Thread: loop issues
Post: RE: loop issues

Specification: The company are involved in several innovative projects and are currently in the process of obtaining a contract for a game that simulates the financial running of a shop that sells a ...
kanwal121 Homework 4 3,401 Dec-17-2017, 10:39 PM
    Thread: loop issues
Post: loop issues

import random #this is to import the random number for calculations initialBalance = 1000 #this is the initial balance £1000 wholeSalePrice = 10 #this is the wholesale price shopSalePrice = 40 #shops ...
kanwal121 Homework 4 3,401 Dec-17-2017, 10:18 PM
    Thread: Unit 18 Procedural Programming Python
Post: RE: Unit 18 Procedural Programming Python

that loop will never end. Because days will always be >0 you have replied to the loop message. What calculations will end the loop please?
kanwal121 Homework 6 4,092 Dec-17-2017, 03:51 PM
    Thread: Unit 18 Procedural Programming Python
Post: RE: Unit 18 Procedural Programming Python

import random #this is to import the random number for calculations initialBalance = 1000 #this is the initial balance £1000 wholeSalePrice = 10 #this is the wholesale price shopSalePrice ...
kanwal121 Homework 6 4,092 Dec-17-2017, 02:04 PM
    Thread: Unit 18 Procedural Programming Python
Post: Unit 18 Procedural Programming Python

def newBalance(newBalance,addvertCost,productPurchased): #this is to pass the calculations throgh the parameter answer = newBalance-addvertCost-productPurchased #this is to output the new ba...
kanwal121 Homework 6 4,092 Dec-17-2017, 01:47 PM

User Panel Messages

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