-
Notifications
You must be signed in to change notification settings - Fork 73
Create Lesson 1HW.py #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Create Lesson 1HW.py #137
Conversation
print("Числа:", int_test1, int_test2) | ||
print("Строки:", str_test3, str_test4) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
здесь нужны ф-строки
nnn = int(n+n+n) | ||
n=int(n) | ||
result = (n+nn+nnn) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- много ошибок стиля, ненужные скобки
- нужно
n = input("Введите число: ")
print(f'Результат: {int(n) + int(n2) + int(n3)} ')
continue | ||
else: | ||
print(f'Максимальное число: {max}') | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
max
встр имя
elif pos < neg: | ||
print('Вы работаете в убыток') | ||
elif pos == neg: | ||
print('Вы рарботаете в 0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
выполнено
while a < b: | ||
a += a*0.1 | ||
day += 1 | ||
print(f'На {day}-й день спортсмен достиг результата — не менее {b} км') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
выполнено
No description provided.