Вопрос:

Fill in the blanks in the code snippet.

Смотреть решения всех заданий с листа

Ответ:

Here's the completed code snippet with the blanks filled in:

if hedgehogs == 5:

if contrabandist != 'Василий':

print('Васи здесь нет, и ежей слишком мало!')

else:

print('Вася-Вася, что же ты так меня подвёл?')

print('Ежей должно быть хотя бы пять!')

elif hedgehogs == 7:

print('С ежами справились. Выдвигаемся на рассвете.')

else:

print('Опасно: ежей уже больше семи!')

Explanation:

  1. The first blank should be ==. This is because the code is checking if the variable hedgehogs is equal to 5.
  2. The second blank should be !=. This means 'not equal to'. The code is checking if the variable contrabandist is not equal to the string 'Василий'.
  3. The third blank should be ==. This is because the code is checking if the variable hedgehogs is equal to 7.
ГДЗ по фото 📸
Подать жалобу Правообладателю