Python

Aadhar card number validation using Python

Python script for validating and generating Aadhar card numbers using verhoeff algorithm. File aValidate.py can be used for generating given Aadhar number. File aGenerate.py can be used for generating aadhar numbers. The numbers are generated using verhoeff algorithm so most of the aadhar verification services wont be able to differentiate between legit aadhar numbers and …

Aadhar card number validation using Python Read More »

Create bill calculator GUI app using Tkinter in Python

This application allows the user to input the name, price, and quantity of items, and it calculates the total bill. First, make sure you have Python installed on your machine. Tkinter comes pre-installed with Python, so you don’t need to install it separately. import tkinter as tk from tkinter import messagebox class BillCalculatorApp: def __init__(self, …

Create bill calculator GUI app using Tkinter in Python Read More »

Shift decimal point in Python

Shifting Right def shift_decimal_right(number_str, places): if ‘.’ in number_str: integer_part, fractional_part = number_str.split(‘.’) number_str = integer_part + fractional_part return number_str + ‘0’ * places  shifted_number = shift_decimal_right(“123.45”, 2) print(shifted_number)   Output: “1234500” Shifting Left def shift_decimal_left(number_str, places): if ‘.’ in number_str: integer_part, fractional_part = number_str.split(‘.’) number_str = integer_part + fractional_part else: fractional_part = ” number_str …

Shift decimal point in Python Read More »

UNINSTALLING PYTHON PACKAGES USING PIP

‘Pip Installs Packages’. It’s a package management system used to install and manage software packages written in Python. Most of the packages in Python are available in the Python Package Index, also known as PyPI.” Uninstalling the Python Package “To uninstall a package, you’ll need to know the exact name of the package. Let’s say …

UNINSTALLING PYTHON PACKAGES USING PIP Read More »

Scroll to Top