Skip to content

Category: python

Python sys Module

The sys module is a standard module in which we manage the Python version installed on our system. Using this module we can use functions and features specific to the […]

Python Generators

Generators are objects used to create iterable objects (eg functions) in Python and do not take up any memory space. For example, generating 100,000 values ​​and keeping them in a […]

Python Iterators

Python Iterators

We will try to learn how to create and use iterators and how to write our own objects as iterable. Let’s first try to understand what iterators are What are […]

code-programming

STUDENT NOTE SYSTEM (BASIC)

# student note system - 1 import sqlite3 import sys from tkinter import * import time while True: con = sqlite3.connect("trial.db") cursor = con.cursor() def createTable(): cursor.execute("CREATE TABLE IF NOT […]

code-programming

STUDENT NOTE SYSTEM

import sqlite3 import sys from tkinter import * import time import messagebox window1 = Tk() window1.geometry("450x200") window1.configure(background="coral") window1.title("LOGIN") var1= StringVar() var2= StringVar() def reset(): var1.set("") var2.set("") def login(): if var1.get()=="123456789": […]

code-programming

Restaurant Login Systems – 2 (improved)

from tkinter import * import tkinter.messagebox import tkinter.ttk import time import random from tkinter import Tk, StringVar, ttk import tkinter.messagebox import messagebox window = Tk() window.geometry("1520x825+0+0") window.configure(background="grey17") window.title("FAST FOOD RESTAURANT-2") […]