https://github.com/loosedwhale/python_mini_codes
https://github.com/loosedwhale/python_mini_codes
assignment python python3
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/loosedwhale/python_mini_codes
- Owner: LoosedWhale
- Created: 2023-11-23T16:23:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-23T17:33:56.000Z (over 1 year ago)
- Last Synced: 2025-02-13T23:45:06.609Z (4 months ago)
- Topics: assignment, python, python3
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Mini Codes
Languages and Tools:
![]()
## Task Seven - Remake and Before Code
### `task_seven_started_remake_and_before_code.py`#### Before Code
The before code in this file calculates energy consumption and prices for food items based on worker preferences. It also includes functions to check workers for food, convert food to energy, and calculate the cost of microwaving.#### After Code
The after code introduces two classes, `Worker` and `Microwave`, along with their respective methods. This code aims to structure and enhance the functionality provided in the before code.## Additional Python Scripts
### `print_1-10.py`
Prints numbers 1 to 10 using different loops and list comprehension.### `more_extra.py`
Includes functions for user input, checking conditions, and printing messages.### `gui_dice.py`
Implements a simple GUI application that simulates rolling a six-sided die.### `games_assigment_drafts.py`
Drafts related to a games assignment, including a dictionary of games and their publishers, sorting and searching functionality, and a menu system.### `five_of_three_main.py`
Randomly selects and prints a consequence from a list.### `firstlesson_main.py`
Defines a function `max` to find the maximum of two numbers and demonstrates its usage.### `before_exam_practises.py`
Includes various Python practices covering lists, strings, loops, and functions.## How to Run
1. Clone the repository: `git clone https://github.com/LoosedWhale/Python_Mini_Codes.git`
2. Navigate to the project directory: `cd python-code-repository`