Skip to content
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

1st ver #47

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

1st ver #47

wants to merge 8 commits into from

Conversation

SashaLesik
Copy link

No description provided.

Copy link

@skeapskeap skeapskeap left a comment

Choose a reason for hiding this comment

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

советую больше внимания уделять неймингу, это прям важная хрень
например в 1 задании имя one_day лучше будет передавать смысл переменной delta
ну и для days_30 тоже можно придумать лучшее имя

кстати, только сейчас заметил, что PR сделан в основной репозиторий

@@ -7,22 +7,25 @@
2. Превратите строку "01/01/20 12:10:03.234567" в объект datetime

"""
import datetime as dt
from datetime import timedelta


def print_days():

Choose a reason for hiding this comment

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

👌

yesterday = today - delta
days_30 = today - 30*delta

print(today, yesterday, days_30)


def str_2_datetime(date_string):

Choose a reason for hiding this comment

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

👍

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