Skip to content

Conversation

Andrusha-cpp
Copy link
Owner

No description provided.

Task3.py Outdated

if len(password) < 16:
print("Too short(((")
if password.isdigit():

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:

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

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

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)

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

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сделать вывод понятным для пользователя

else:
print("Goat")


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")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Используйте f-строки

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants