This repository is created for some python useful python scripts and code.
- The script is a Python-based random password generator that utilizes the random and string modules. It combines ASCII letters, digits, and punctuation to create a diverse character set. The password length is set to 16 characters by default, and the script employs random.sample() to ensure uniqueness in the generated password. The resulting password is printed to the console, providing a simple and effective way to generate secure and random passwords.
- This ATM class allows users to interact with the system by creating a PIN, depositing or withdrawing money, checking their balance, and exiting the program. Each function performs the specified operation, checking the entered PIN for validation and updating the account balance accordingly.
- The Fraction class is designed to represent and perform arithmetic operations on fractions. It features methods for addition, subtraction, multiplication, and division, ensuring accurate computations with numerator and denominator components. The class employs special methods (add, sub, mul, truediv) to handle arithmetic operations, returning a new Fraction instance for each operation. This implementation enhances code readability and reusability, providing a versatile tool for working with fractions in Python.
Here are some repositories where you can find concepts related to Python