https://github.com/thefloatingstring/bhx-4-python-simple
https://github.com/thefloatingstring/bhx-4-python-simple
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thefloatingstring/bhx-4-python-simple
- Owner: TheFloatingString
- Created: 2021-01-09T04:51:36.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-09T06:59:15.000Z (about 5 years ago)
- Last Synced: 2025-01-13T08:12:47.699Z (about 1 year ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BrebeufHx 4 - Python Workshop (Simple Version) (Part 1/2)
Hello there!
This is the simple version of the Python workshop.
The goal is to create a Python function that can identify your type of pizza and predict eating time, based on what you put on that pizza.
The concepts that are used are:
- variable types
- if/else statements
- functions
If you had fun with this workshop, feel free to try the [more advanced web development version of this workshop (part 2/2)](https://github.com/TheFloatingString/bhx-4-python-web-dev),
in which we create a web app that connects the fronend (HTML) with the backend (python).
## Running Python Online
[Repl.it](https://repl.it) offers online execution of Python code.
## Installing Python on your Computer
Python can be installed on your computer by downloading the package through the [Python Foundation](https://www.python.org/downloads/)
When the installation wizard pops up following the download, check the option to `add python to the environment PATH` **(important)**
## Running and Editing the Code with Pycharm (easier)
Pycharm is an intuitive tool to run and edit python code. PyCharm can be downloaded via its [offical website](https://www.jetbrains.com/pycharm/).
## Running the Code without Pycharm (harder)
If the python PATH was correctly configured during installation, you can open your command prompt (cmd on windows, Terminal on macOS or Linux)
Navigate to your python file with `cd`, to change directory. Here's a link to
[a useful article on cmd navigation](https://www.howtogeek.com/659411/how-to-change-directories-in-command-prompt-on-windows-10/).
When you arrive at the directory in which your file is in, type ```python ``` or ```python3 ``` for MacOS/Linux users.
If you do not like PyCharm, you can use an alternative code editor such as [Atom](https://atom.io).
---
Workshop date: January 9, 2021