def main():
print "To C, or not to C: that is the question." #print statement demo
if __name__=='__main__':
main()
#ways for printing on a single line
print "To C, or not to C: that is the question."
print "To C, or not to C:",
print "that is the question."
def main():
#variable declaration
height = 8
length = 12
width =10
volume = height * length * width #volume calculation
weight = (volume + 165)/166 #weight calculation
#print statements
print "Dimensions: %dx%dx%d" % (length,width,height)
print "Volume (cubic inches): %d" % volume
print "Dimensional weight (pounds): %d" % weight
if __name__=='__main__':
main()
def main():
#input from user
height = int(raw_input("Enter height of box: "))
length = int(raw_input("Enter length of box: "))
width = int(raw_input("Enter width of box: "))
volume = height * length * width #volume calculation
weight = (volume + 165)/166 #weight calculation
#print statements
print "Volume (cubic inches): %d" % volume
print "Dimensional weight (pounds): %d" % weight
if __name__=='__main__':
main()
def main():
#variable declaration
FREEZING_PT=32.0
SCALE_FACTOR= 5.02/9.0
#input from user
farenheit=float(raw_input("Enter Farenheit temperature: "))
celsius=(farenheit-FREEZING_PT) * SCALE_FACTOR #convert farenheit to celcius
print "Celsius equivalent: %.1f" % celsius
if __name__=='__main__':
main()