Skip to content

Commit

Permalink
course3
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza Shulika committed Nov 22, 2024
1 parent bb298bf commit 8ea2796
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,5 @@ def days_to_weeks(days: int) -> int:
def from_dict(cls, course_dict: dict) -> "OnlineCourse":
week = cls.days_to_weeks(course_dict["days"])
return cls(course_dict["name"],
course_dict["description"],
week)

# course_dict = {
# "name": "Python Core",
# "description": "After this course you will know everything about Python",
# "days": 12,
# }
# python_course = OnlineCourse.from_dict(course_dict)
# print(python_course.weeks)
course_dict["description"],
week)

0 comments on commit 8ea2796

Please sign in to comment.