Section
3.1
|
|
51052 |
x == 0 |
51053 |
profits == losses |
51054 |
c != ' ' |
51055 |
index > last_index |
51056 |
hours_worked > 40 |
51057 |
x >= y |
51058 |
number_of_men >= number_of_women |
51059 |
average < 60.5 |
51060 |
gross_pay < 10000 |
51108 |
x > y |
51114 |
if tempature > 98.6: fever = True |
51115 |
if goods_sold > 500000: bonus = 10000 |
51116 |
if outside_temperature > 90: shelf_life -= 4 |
51117 |
if worked_overtime: pay *= 1.5 |
51102 |
first=name1 if name2 > first: first = name2 |
51217 |
max = x if y > max: max = y |
51160 |
min = x if y<min: min = y if z<min: min = z |
51897 |
if (isIsosceles) : isoCount += 1 triangleCount += 1 polygonCount += 1 |
Section
3.2 |
|
51118 |
if age >= 65: |
51119 |
if sold_yesterday > sold_today: |
51120 |
if temperature > 98.6: fever = True else: fever = False |
51129 |
int1 = input() int2 = input() if int1 == int2: print("True") else: print("False") |
51130 |
element = input() element = element.lower() if element == "hydrogen": print(1.008) elif element == "helium": print(4.0026) elif element == "lithium": print(6.94) else: print("Sorry, I don't recognize that element!") |
Section
3.3
|
|
51098 |
s == "end" |
51099 |
s1 > s2 |
51100 |
last_name > "Dexter" |
51101 |
s != "end" |
51882 |
c=='\n' |
51883 |
c==' ' |
51884 |
c=='\t' |
Section
3.4
|
|
51121 |
if age < 18: minors += 1 elif age < 65: adults += 1 else: seniors += 1 |
51122 |
if ph < 7: neutral = 0 base = 0 acid = 1 elif ph > 7: neutral = 0 base = 1 acid = 0 else: neutral = 1 base = 0 acid = 0 |
Section
3.5 |
|
51109 |
worked_overtime |
51112 |
age < 19 or is_full_time_student |
51113 |
not is_a_member |
51173 |
on_off_switch = not on_off_switch |
51061 |
x>=0 and y<0 |
51062 |
x>=0 and y<0 |
51063 |
is_empty or number_of_credits==3 |
51165 |
number_of_prizes%number_of_participants==0 |
51166 |
width_of_box%width_of_book!=0 |
51167 |
x%2==0 |
51110 |
temperature>90 and humidity<10 |
51111 |
(years_with_company < 5 and department !=99) |
51065 |
not is_empty and (number_of_credits==1 or number_of_credits==3) |
51064 |
not is_empty and number_of_credits>2 |
Section
3.6
|
|
51916 |
oneSpace=" " |
51889 |
pos=line.find(",") clause=line[0:pos] |
51890 |
k =sentence.find(" ") temp = sentence[k+1:] secondWord = temp[0:temp.find(" ")] |
51891 |
hasPassedTest = True |
51892 |
isQuadrilateral = numberOfSides==4 |
51893 |
workedOvertime = hoursWorked>40 |
51903 |
recalled = modelName == "Extravagant" and 1999 <= modelYear and modelYear <= 2002 |
51905 |
recalled = (modelName == "Extravagant" and 1999<=modelYear and modelYear<=2002 or modelName == "Guzzler" and 2004<=modelYear and modelYear<=2007) |
51910 |
recalled = 1995<=modelYear and modelYear<=1998 or 2004<=modelYear and modelYear<=2006 |
51911 |
norecall = not (1995<=modelYear and modelYear<=1998 or 2004<=modelYear and modelYear<=2006) |
51913 |
recalled = 2001<=modelYear and modelYear<=2006 |
51915 |
norecall = modelYear<2001 or modelYear>2006 |