Liam liamlah

View simszorkalt.py
1 2 3 4 5 6 7 8 9 10
class kitchenclass:
fridgefull = 1
drawerfull = 1
petdog = 1
placedescript = 1
kitchenobject=kitchenclass()
 
##def start():
## print"you find yourself in the kitchen, you see a fridge, a drawer, and a dog. Exits are to the front room, or up the stairs"
## print "what would you like to do?"
View simszork.yp
1 2 3 4 5 6 7 8 9 10
class kitchenclass:
fridgefull = 1
drawerfull = 1
petdog = 1
placedescript = 1
kitchenobject=kitchenclass()
 
def start():
print"you find yourself in the kitchen, you see a fridge, a drawer, and a dog. Exits are to the front room, or up the stairs"
print "what would you like to do?"
View superkod
1 2 3 4 5 6 7 8 9 10
/*
* Program made by Safety, ripped some from kod.c and gnutt.c
* Credits goes to dekadish(bjurr =)) for gnutt.c.
*
* This compiles on unix, should compile on windows too with cygwin.
* SuperKoD v1.1
* You must run this as r00t.
*/
 
#include <stdio.h>
View lorentz.py
1 2 3 4 5 6 7 8 9 10
import math
speedoflight = 3e8
print "lets work out the mass of something moving at a speed near the speed of light (C)"
print "what is the initial mass of your object in kg?"
initmass = float(raw_input())
print "what is the velocity of your object in m/s?\n(note: C is 3e8, your input can have up to 17 digits before rounding.)"
velocity = float(raw_input())
if velocity == 3e8:
print "Watch out, you are trying to divide by zero! Try again."
else:
View wavelengths0.8.py
1 2 3 4 5 6 7 8 9 10
print "This script can convert wavelengths to frequencies or vice versa."
speedlight = raw_input("Would you like an (1)exact value of the speed of light, or the (2)rounded value?\n" )
if speedlight == "1":
sol = 299792458.00
elif speedlight == "2":
sol = 3e8
else:
print "Please choose a valid option."
#sol = 299792458.00 #this is the speed of light in m/s
#sol = 3e8 #this is the speed of light in m/s rounded
View wavelengths0.7.py
1 2 3 4 5 6 7 8 9 10
print "This script can convert wavelengths to frequencies or vice versa."
sol = 299792458.00 #this is the speed of light in m/s
#ol = 300000000.00 #this is the speed of light in m/s
 
def wavelength():
print "Ok, Please enter your wavelength in Metres. (do not use scientific notation)"
wavelength = float(raw_input ())
answerfreq = sol / wavelength
print "the frequency is %rhz" % answerfreq
if wavelength >=1000:
View Wavelengths0.6.py
1 2 3 4 5 6 7 8 9 10
print "This script can convert wavelengths to frequencies or vice versa."
sol = 299792458.00 #this is the speed of light in m/s
#sol = 300000000.00 #this is the speed of light in m/s
print "do you have a (1) a wavelength or (2) a frequency?"
 
 
choice = raw_input()
if choice == "1":
print "Ok, Please enter your wavelength in Metres. (do not use scientific notation)"
wavelength = float(raw_input ())
Something went wrong with that request. Please try again.