Skip to content

jjmonsalveg/python-100-days

Repository files navigation

Python 100 days of code

Environments

We are going to use the python-100-days virtual environment for the project. We are going to create a folder per day and in case we need to install something really different to the virtual environment global for the project then we can create a new virtual environment for that day.

Setup Global Environment

Important

If you are on Mac OS you need to install first tcl-tk before you install your python version 3.12.3

 brew install tcl-tk
  1. Install pyenv and pyenv-virtualenv

  2. Install Python 3.12.3

    pyenv install 3.12.3
  3. Create a virtual environment for the project

    pyenv virtualenv 3.12.3 python-100-days
  4. set as local python version

    pyenv local python-100-days

Note

In case you haven't installed tcl-tk then you need to uninstall your python version and reinstall after install tcl-tk

 pyenv uninstall 3.12.3
 brew install tcl-tk
 pyenv install 3.12.3

How to manage dependencies

  • Use pip to install new packages
pip install <name-package>
  • List dependencies
pip list
  • Search packages
pip index versions <name-package>
  • Update pip
python -m pip install --upgrade pip

Linter y formater

We are using ruff

To check violations run

ruff check

To fix them

ruff check --fix

To include sort imports run

ruff check --select I --fix

To format the project

ruff format

Index

  • Day 15: Expresso Machine (functional programming)
  • Day 16: Expresso Machine (with classes)
  • Day 17: Question bank and use of lists
  • Day 18: Multiple challengues with Turtle and color challengue
  • Day 19: Turtle competition
  • Day 20: Snake game using Turtle library
  • Day 22: Pong game using Turtle library
  • Day 23: Car game using Turtle library
  • Day 24: Letter problem with Files
  • Day 24:
  • Day 26: Nato Game - List and dict compresion to build data read from csv
  • Day 27: Build GUI with Tkinter module and build miles to km converter
  • Day 28: Build a Pomodoro GUI with Tkinter
  • Day 29: Password Manager GUI with Tkinter
  • Day 30: Management of Exceptions, Errors and JSON data

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages