Задание 2: Исправь ошибки в коде «алгоритм ветвления>> так что бы он заработал num = int(input('Enter a number: ')) if num >= 0: print('The number is positive.') else: print('The number is negative.')
Ответы
Ответ дал:
0
Ответ:
num = int(input('Enter a number: '))
if num >= 0:
print('The number is non-negative.')
else:
print('The number is negative.')
Объяснение:
Ответ дал:
0
num = int(input('Enter a number: '))
if num >= 0:
print('The number is positive.')
else:
print('The number is negative.')
Sez1a:
так код у тебя рабочий, возможно проблема в отступая просто
Похожие вопросы
1 год назад
1 год назад
1 год назад
1 год назад
2 года назад
2 года назад
8 лет назад