An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Python Mini Codes

Languages and Tools:


python

## 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`