SRSS 2020 P2 Solution
SRSS 2020 P2 Solution
2. = LEFT(A4,1) to LEFT(A18,1)
3. = VLOOKUP(E4,$C$25:$D$28,2,TRUE)
4. =FV(G4,E4,0,-D4)
5.
=IF(F4="S",0.1*H4,0)
6.
=H4-I4
7. =COUNTIF(F4:F18,"S")
found = True #
for i in range(item): #
if fruits_list[index] == fruit_to_find: #
print("There are " + str(items) + " fruits in the list, " +
fruit_to_find + " is item " + str(i) +
" in the list.") #
found = True
if found = True: # #
print("The fruit is not in the list.")
even_sum=0
odd_sum=0
for index in range(size):
digit = int(numstr[index])
if (index + 1) % 2 == 0:
even_sum += digit
else:
odd_sum += digit
check_digit = (odd_sum * 3 + even_sum) % 10
if check_digit != 0:
check_digit = 10 - check_digit