1. and.py
roomClean = False homeworkDone = True if roomClean and homeworkDone: print("You can go out to play.") else: print("You haven't finished your chores.")
position = 1 #1st place! time = 10.22 personalBest = 9.87 if position == 1 or time < personalBest: print("Great run!") else: print("Never mind")
feeling = "happy" if not(feeling == "happy"): print("Cheer up brussel sprout!") else: print("That's great, keep smiling!")
foul = False speed = 220.4 #220.4 km/hr outcome = "Ace" if not(foul) and (speed >= 200.0 or outcome == "Ace"): print("Great serve!")
if cobblestones >= 3 and sticks >= 2:
if sticks >= 2 and (cobblestones >=3 or woodplanks >=3):
pace
rating above 90. Good passing players may have a passing
rating above 90 as well. A player also has an overall
rating, which is a (rough) average of all their abilities, and this can range between 45 and 99. Write a program that inputs five integer values: a pace
value, a shooting
value (for goal scoring ability), a passing
value, a defending
value, and an overall
value.overall
value less than (but not including) 75, I don't want them in my team (so output an appropriate message). Otherwise, if either their shooting value or pace value is equal to or greater than 90, output "You have a good striker". If their defending value is greater than or equal to 90, output "You have a good defender". If their defending value and their passing value is greater than 85, output "You have a good midfielder". If their passing and shooting values are greater than 85, output "You have an all-round forward". If all of their values are over 90 (including the overall), output "You have a superstar". For all other players not met by the above rules, output "You are on the bench".