- Saved searches
- Use saved searches to filter your results more quickly
- atikhobaev/hw_python_oop
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
- Saved searches
- Use saved searches to filter your results more quickly
- sergeypatrakov/hw_python_oop
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Saved searches
- Use saved searches to filter your results more quickly
- vkfedosov/fitness_tracker
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
- Saved searches
- Use saved searches to filter your results more quickly
- Mikhail2690/hw_python_oop
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Saved searches
- Use saved searches to filter your results more quickly
- VladimirMonolith/fitness_tracker
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
atikhobaev/hw_python_oop
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Программный модуль фитнес-трекера,
который обрабатывает данные для трех видов тренировок: для бега, спортивной ходьбы и плавания.
- принимает от блока датчиков информацию о прошедшей тренировке,
- определяет вид тренировки,
- рассчитывает результаты тренировки,
- выводит информационное сообщение о результатах тренировки.
Информационное сообщение включает такую информацию как:
- тип тренировки (бег, ходьба или плавание);
- длительность тренировки
- дистанция, которую преодолел пользователь, в километрах;
- среднюю скорость на дистанции, в км/ч;
- расход энергии, в килокалориях.
Каждый вид спортивной активности в модуле описан соответствующим классом:
- Бег → class Running ;
- Спортивная ходьба → class SportsWalking ;
- Плавание → class Swimming .
Конструктор каждого из классов получает информацию с датчиков:
- action, тип int — количество совершённых действий (число шагов при ходьбе и беге либо гребков — при плавании);
- duration, тип float — длительность тренировки;
- weight, тип float — вес спортсмена.
Методы классов, которые отвечают за обработку данных:
- расчёт дистанции, которую пользователь преодолел за тренировку get_distance()
- расчёт средней скорости движения во время тренировки: get_mean_speed();
- расчёт количества потраченных калорий за тренировку: get_spent_calories();
- создание объекта сообщения о результатах тренировки: show_training_info().
About
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
A fitness tracker module that calculates and displays the results of workout. This work was done to consolidate the material on the OOP.
sergeypatrakov/hw_python_oop
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Программный модуль для фитнес-трекера, который рассчитывает и отображает результаты тренировки. Работа была сделана для закрепления материала по ООП.
Клонируй репозиторий и перейди в него в командной строке:
git clone https://github.com/sergeypatrakov/hw_python_oop
Cоздай и активируй виртуальное окружение:
- Если у тебя Linux/macOS source venv/bin/activate
- Если у тебя windows source env/scripts/activate python3 -m pip install —upgrade pip
Установи зависимости из файла requirements.txt:
pip install -r requirements.txt
python3 manage.py runserver
A fitness tracker module that calculates and displays the results of workout. This work was done to consolidate the material on the OOP.
Clone the repository and go to the command line:
git clone https://github.com/sergeypatrakov/hw_python_oop
Create and activate a virtual environment:
- If you have Linux/mac OS source venv/bin/activate
- If you have windows source env/scripts/activate python3 -m pip install —upgrade pip
Install the dependencies from the file requirements.txt:
pip install -r requirements.txt
python3 manage.py runserver
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Модуль фитнес-трекера, определяет данные для трёх видов тренировок: бега, спортивной, ходьбы и плавания. Рассчитывает и отображает результаты тренировки.
vkfedosov/fitness_tracker
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Проект модуль фитнес-трекера
Модуль фитнес-трекера выводит информационное сообщение о результатах тренировки.
Модуль фитнес-трекера, использует парадигму ООП. Модуль определяет данные для трёх видов тренировок: бега, спортивной ходьбы и плавания. Рассчитывает и отображает результаты тренировки.
Модуль фитнес-трекера выполняет следующие функции:
- принимает от блока датчиков информацию о прошедшей тренировке;
- определяет вид тренировки;
- рассчитывает результаты тренировки;
- выводит информационное сообщение о результатах тренировки.
git clone git@github.com:vkfedosov/fitness_tracker.git
pip install -r requirements.txt
About
Модуль фитнес-трекера, определяет данные для трёх видов тренировок: бега, спортивной, ходьбы и плавания. Рассчитывает и отображает результаты тренировки.
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Модуль фитнес-трекера (работа с ООП)
Mikhail2690/hw_python_oop
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Модуль расчёта и отображения полной информации о тренировках по данным от блока датчиков.
Задача — разработать программный модуль фитнес-трекера, который обрабатывает данные для трех видов тренировок: для бега, спортивной ходьбы и плавания. Этот модуль
- принимает от блока датчиков информацию о прошедшей тренировке,
- определяет вид тренировки,
- рассчитывает результаты тренировки,
- выводит информационное сообщение о результатах тренировки.
Информационное сообщение должно включать такую информацию:
- тип тренировки (бег, ходьба или плавание);
- длительность тренировки;
- дистанция, которую преодолел пользователь, в километрах;
- среднюю скорость на дистанции, в км/ч;
- расход энергии, в килокалориях.
Клонировать репозиторий и перейти в него в командной строке:
git clone https://github.com/Mikhail2690/hw_python_oop.git
Cоздать и активировать виртуальное окружение:
source venv/Scripts/activate
Установить зависимости из файла requirements.txt:
python -m pip install --upgrade pip
pip install -r requirements.txt
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Программный модуль для расчета и отображения результатов тренировки.
VladimirMonolith/fitness_tracker
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Программный модуль фитнес-трекера, который обрабатывает данные для трех видов тренировок: для бега, спортивной ходьбы и плавания.
- принимает от блока датчиков информацию о прошедшей тренировке
- определяет вид тренировки
- рассчитывает результаты тренировки
- выводит информационное сообщение о результатах тренировки
Информационное сообщение включает следующую информацию:
- тип тренировки (бег, ходьба или плавание)
- длительность тренировки
- дистанция, которую преодолел пользователь, в километрах
- среднюю скорость на дистанции, в км/ч
- расход энергии, в килокалориях