-
Notifications
You must be signed in to change notification settings - Fork 0
Laba1 #1
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: main
Are you sure you want to change the base?
Laba1 #1
Conversation
Task3.py
Outdated
|
||
if len(password) < 16: | ||
print("Too short(((") | ||
if password.isdigit(): |
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.
Механизм работы?
Task4.py
Outdated
denomination = {100: 0, 50: 0, 10: 0, 5: 0, 2: 0, 1: 0} | ||
print(denomination) | ||
|
||
for key in denomination: |
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.
Написать код без цикла
Task5.py
Outdated
if user_number % 7 == 0: | ||
print("Magic number!") | ||
else: | ||
print(user_number + 7) No newline at end of file |
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.
Условие
Task6.py
Outdated
R = 8.32 | ||
|
||
n = round((pressure * volume) / (R * temperature), 4) | ||
print("Answer: n =", n, "moles") No newline at end of file |
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.
Напишите вывод используя f-строки. Выведите для пользователя информацию, что он ввел.
Task7.py
Outdated
@@ -0,0 +1,5 @@ | |||
time = int(input("Seconds:")) | |||
|
|||
minutes = round(time / 60) |
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.
Перепишите без функции round
Task9.py
Outdated
else: | ||
print("Incorrect IP-adress") | ||
except NameError: | ||
print("Incorrect IP-adress") No newline at end of file |
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.
Переписать согласно условиям
Task10.py
Outdated
"\na * b =", a * b, | ||
"\na / b =", a / b, | ||
"\na % b =", a % b, | ||
"\na ^ b =", a ** b) No newline at end of file |
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.
Сделать вывод понятным для пользователя
else: | ||
print("Goat") | ||
|
||
|
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.
Переписать согласно условиям(ограничениям)
Task12.py
Outdated
if internet > 1000: | ||
add_internet = internet - 1000 | ||
payment += add_internet * 0.79 | ||
print("You have extra", add_internet, "megabytes: +", round(add_internet, 2) * 0.79, "rubles") |
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.
Используйте f-строки
No description provided.