print("Вопрос №1")
print("В коробке было 8 яиц, 2 вы розбили а 2 сели \nВаш ответ?")
question1 = int(input("..."))
if question1 != 6:
print("В коробке было 6 яйца")
print("Вслушайтесь в задачу внимательно, \n2 вы розбили '2 приготовили, 2 сели'")
print('')
else:
print("ответ правильний!")
print('')
print("Вопрос №2")
print("Меня покупают для еды, \nно никогда не едят. Кто я?\nВаш ответ?")
question2 = input("...")
if question2 != "Тарелка" or question2 != "тарелка":
print("Правильний ответ Тарелка")
print('')
else:
print("ответ правильний!")
print('')
print("Вопрос №3")
print("В каком городе есть: 1/3 от Чили, \n1/3 от Канады и 1/3 от Гондураса\nВаш ответ?")
question3 = input("...")
if question3 != "Чикаго" or question3 != "чикаго":
print("Правильний ответ Чикаго")
print("(Чили - Чи, Канада - ка, Гондураса - го)")
print('')
else:
print("ответ правильний!")
Вот тебе в паскале
program ryad_chisel;
var N, t:integer;
begin
read(N);
t:=(N*(N+1))div 2;
if t mod 2 =1 then writeln('IMPOSSIBLE')
else begin
if N mod 2 =0 then begin
t:=N div 4;
repeat
write('+');
t:=t-1;
until t=0;
t:=N div 2;
repeat
write('-');
t:=t-1;
until t=0;
t:=N div 4;
repeat
write('+');
t:=t-1;
until t=0;
end
else begin
t:=((N+1) div 4)-1;
repeat
write('+');
t:=t-1;
until t=0;
t:=((N-1) div 2)+1;
repeat
write('-');
t:=t-1;
until t=0;
t:=(N+1) div 4;
repeat
write('+');
t:=t-1;
until t=0;
end
end
end.