Вопрос школьника по предмету Информатика
Напишите программу на Python, которая использует цикл «FOR», чтобы напечатать «Red», а затем «Gold» 20 раз все в отдельных строках.
Ответ учителя по предмету Информатика
Ответ:
for i in range (1,41):
if 1<=i<21:
print («Red»)
if 21<=i<41:
print («Gold»)
Похожие вопросы от пользователей
I want to tell you about the city I live in. It is the best city in the world. There are a lot of interesting places in it. There are lot of __________, __________, __________ and __________ in Washington. Visit the Smithsonian! This __________ is very big and interest¬ing. A lot of people visit it every year. There are many __________, __________ and __________ __________ in my city. You can buy many things there. Washington has got a lot of __________ and __________. You can have a meal there. There are many beautiful __________ in Washington. I like spending time with my friends in Rock Creek Park. I like visiting the National __________. It is a very big __________. There are many animals and birds there. Washington is a fantastic place! All the best, Sam ПЕРЕВОД И ВСТАВЬТЕ СЛОВА ЕСЛИ МОЖНО .