print "\tAC Control Unit"
print "1\tTurn the AC on"
print "2\tTurn the AC off"
iResponse=int(raw_input("Enter your selection::"))
if iResponse==1:
print "AC is now on"
if iResponse==2:
print "AC is now off"
print "\tAC Control Unit"
print "a\tTurn the AC on"
print "b\tTurn the AC off"
cResponse=raw_input("Enter your selection::")
if cResponse=='a':
print "AC is now on"
if cResponse=='b':
print "AC is now off"
fBalance = 100.25
print "\tATM"
print "1\tDeposit Funds"
print "2\tWithdraw Funds"
iSelection=int(raw_input("Enter Your Selection: "))
if iSelection==1:
fTransAmount=int(raw_input("Enter fund amount to deposit: "))
print "Your new Balance is: ", fBalance+fTransAmount
if iSelection==2:
fTransAmount=int(raw_input("Enter fund amount to withdraw: "))
if fTransAmout>fBalance:
print "Insufficient Funds"
else:
print "Your new balance is ", fBalance-fTransAmount
cResponse=raw_input("Enter a letter A: ")
if cResponse=='A':
print "Correct response"
else:
print "Incorrect response"
iResponse=int(raw_input("Enter a numeer from 1 to 10: "))
if iResponse<1 or iResponse>10:
print "Number not in Range"
else:
print "Thank You"
cResponse=raw_input("Please Enter a letter: ")
if not cResponse.isdigit():
print "Thank You"
else:
print "You did not enter a letter"
cResponse=raw_input("Please Enter a letter: ")
if cResponse.isdigit():
print "Thank You"
else:
print "You did not enter a digit"
print "1\tSports"
print "2\tGeography"
print "3\tMusic"
print "4\tWorld Events"
iResponse=int(raw_input("Please select a category (1-4): "))
if iResponse==1:
print "You selected sports questions"
elif iResponse==2:
print "You selected geography questions"
elif iResponse==3:
print "You selected Music questions"
elif iResponse==4:
print "You selected World event questions"
import random
iRandomNum=(random.randint(0,100)%10)+1
iResponse=int(raw_input("Guess a number between 1 and 10: "))
if iResponse==iRandomNum:
print "You guessed right"
else:
print "Sorry, you guess wrong"
print "The correct guess was ",iRandomNum
import random
iRandomNum=(random.randint(0,100)%4)+1
print "Fortune Cookie - Chapter 3"
if iRandomNum==1:
print "You will meet a new friend"
elif iRandomNum==2:
print "You will enjoy a long and happy life"
elif iRandomNum==3:
print "Opportunity knocks softly. Can you hear it?"
elif iRandomNum==4:
print "You'll be financially rewarded for your good deeds"
print "Lucky lotto numbers"
print (random.randint(0,100)%49+1)
print (random.randint(0,100)%49+1)
print (random.randint(0,100)%49+1)
print (random.randint(0,100)%49+1)
print (random.randint(0,100)%49+1)
print (random.randint(0,100)%49+1)