FOT 3B Homework Due May 17, 2012

15 May

Write a program that will use boolean conditions to test the relationship between male and female students. If there are more boys in the class, there will be a bunch of goofiness. Otherwise, there will be a bunch of silliness. Post this under python programs.


#Demonstrate the use of if statements

BobSalary = 40000
SallySalary = 50000

if BobSalary > SallySalary:
   print 'Bob makes more than Sally.'
   print 'Sally makes more than Bob.'

Comments Off

Posted in FOT S/T


Comments are closed.