Skip to content

Test task#42

Open
bez-borody wants to merge 8 commits into
mainfrom
Bezborodyi
Open

Test task#42
bez-borody wants to merge 8 commits into
mainfrom
Bezborodyi

Conversation

@bez-borody
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Owner

@IlyaOrlov IlyaOrlov left a comment

Choose a reason for hiding this comment

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

Начало положено) Жду ещё файлов с решениями д/з.

Copy link
Copy Markdown
Owner

@IlyaOrlov IlyaOrlov left a comment

Choose a reason for hiding this comment

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

Есть одно замечание.

@@ -0,0 +1,9 @@
import math
def square(r):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Согласно PEP8 определение функции (стр.2-3) должно быть отделено от остального кода (сверху и снизу) двумя пустыми строками.

Comment thread Practice/Bezborody/lec1_task2.py Outdated
Copy link
Copy Markdown
Owner

@IlyaOrlov IlyaOrlov left a comment

Choose a reason for hiding this comment

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

ОК. Но одно замечание добавилось.

Comment thread Practice/Bezborody/pep8task.py Outdated
Copy link
Copy Markdown
Owner

@IlyaOrlov IlyaOrlov left a comment

Choose a reason for hiding this comment

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

С PEP8 всё ОК. Но по остальным файлам замечания тоже нужно поправить.

end = input("Топлива осталось: ")
distance = input("Расстояние: ")
diff = int(start) - int(end)
result = int(diff) / int(distance)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

С distance теперь всё верно, но diff-то и так число (т.к. это разность двух целых чисел), к нему int() применять не нужно.

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