Python Taskbook Level 6.2

Задание 1

Make a function that will take a number as a parameter and remove zeros from it.

Задание 2

Make a function that will return how many days have passed or are left until a given date in the year, depending on whether that date has already happened or not.

Задание 3

Create a function that will return a list of all leap years in the previous hundred years.

Задание 4

Make a function that takes a year as a parameter and checks whether it is a leap year or not.

Задание 5

Make a function that will return how many days are left until the end of the current month.

Задание 6

Make a function that will return the previous, current and next days of the week as a word in the following dictionary:

python{
  'next': 'Mon',
  'curr': 'Sun',
  'prev': 'Sat',
}