diff --git a/1 File handle/File handle binary/Update a binary file2.py b/1 File handle/File handle binary/Update a binary file2.py index d256c7c805b..8eb900845c3 100644 --- a/1 File handle/File handle binary/Update a binary file2.py +++ b/1 File handle/File handle binary/Update a binary file2.py @@ -30,4 +30,4 @@ def update(): # ! Instead of AB use WB? # ! It may have memory limits while updating large files but it would be good -# ! Few lakhs records would be fine and wouln't create any much of a significant issues +# ! Few lakhs records would be fine and wouldn't create any much of a significant issues diff --git a/1 File handle/File handle binary/update2.py b/1 File handle/File handle binary/update2.py index 001b6d5b660..02511145d7e 100644 --- a/1 File handle/File handle binary/update2.py +++ b/1 File handle/File handle binary/update2.py @@ -17,7 +17,7 @@ def update(): for i in S: if rno == i[0]: - print(f"the currrent name is {i[1]}") + print(f"the current name is {i[1]}") i[1] = input("enter the new name") found = True break diff --git a/Assembler/assembler.py b/Assembler/assembler.py index dba6c6e842e..8c14e78eb0b 100644 --- a/Assembler/assembler.py +++ b/Assembler/assembler.py @@ -745,7 +745,7 @@ def scanner(string): def scan(): """ - scan: applys function scanner() to each line of the source code. + scan: applies function scanner() to each line of the source code. """ global lines assert len(lines) > 0, "no lines" @@ -1008,7 +1008,7 @@ def parser(): elif eax == 3: ecx = float(input(">> ")) - elif eax == 4: # output informations + elif eax == 4: # output information print(ecx) elif token.token == "push": # push commando @@ -1157,7 +1157,7 @@ def parser(): pointer = jumps[token.token] else: # error case - print("Error: Unknow subprogram!") + print("Error: Unknown subprogram!") return else: # error case @@ -1169,7 +1169,7 @@ def parser(): pointer = returnStack.pop() else: # error case - print("Error: No return adress on stack") + print("Error: No return address on stack") return elif token.t == "subprogram": diff --git a/Automated Scheduled Call Reminders/caller.py b/Automated Scheduled Call Reminders/caller.py index f069da7df88..1349762ade0 100644 --- a/Automated Scheduled Call Reminders/caller.py +++ b/Automated Scheduled Call Reminders/caller.py @@ -21,7 +21,7 @@ # Here the collection name is on_call which has documents with fields phone , from (%H:%M:%S time to call the person),date -# gets data from cloud database and calls 5 min prior the time (from time) alloted in the database +# gets data from cloud database and calls 5 min prior the time (from time) allotted in the database def search(): calling_time = datetime.now() one_hours_from_now = (calling_time + timedelta(hours=1)).strftime("%H:%M:%S") diff --git a/BlackJack_game/blackjack.py b/BlackJack_game/blackjack.py index 7a1331f84be..03e5fb05d39 100644 --- a/BlackJack_game/blackjack.py +++ b/BlackJack_game/blackjack.py @@ -106,7 +106,7 @@ def dealer_choice(): while sum(p_cards) < 21: # to continue the game again and again !! k = input("Want to hit or stay?\n Press 1 for hit and 0 for stay ") - if k == "1": # Ammended 1 to a string + if k == "1": # Amended 1 to a string random.shuffle(deck) p_cards.append(deck.pop()) print("You have a total of " + str(sum(p_cards)) + " with the cards ", p_cards) diff --git a/BlackJack_game/blackjack_simulate.py b/BlackJack_game/blackjack_simulate.py index ae1706f6888..078da247c79 100644 --- a/BlackJack_game/blackjack_simulate.py +++ b/BlackJack_game/blackjack_simulate.py @@ -46,7 +46,7 @@ class Card: def __init__(self, suit, rank, face=True): """ - :param suit: patter in the card + :param suit: pattern in the card :param rank: point in the card :param face: show or cover the face(point & pattern on it) """ diff --git a/BoardGame-CLI/snakeLadder.py b/BoardGame-CLI/snakeLadder.py index fd06dd64527..7b434cca5d7 100644 --- a/BoardGame-CLI/snakeLadder.py +++ b/BoardGame-CLI/snakeLadder.py @@ -3,7 +3,7 @@ # Taking players data players = {} # stores players name their locations isReady = {} -current_loc = 1 # vaiable for iterating location +current_loc = 1 # variable for iterating location imp = True @@ -23,7 +23,7 @@ def player_input(): players[name] = current_loc isReady[name] = False x = False - play() # play funtion call + play() # play function call else: print("Number of player cannot be zero") @@ -88,7 +88,7 @@ def play(): print(f"you are at position {players[i]}") elif n == 2: - players = {} # stores player ans their locations + players = {} # stores player and their locations isReady = {} current_loc = 1 # reset starting location to 1 player_input() diff --git a/Checker_game_by_dz/first.py b/Checker_game_by_dz/first.py index 0b6825590f8..c39d5acef8b 100644 --- a/Checker_game_by_dz/first.py +++ b/Checker_game_by_dz/first.py @@ -10,7 +10,7 @@ from modules.checker_board import * from modules.checker import * -# static variables for this perticular file +# static variables for this particular file fps = 60 WIN = pg.display.set_mode((st.width, st.height)) diff --git a/Checker_game_by_dz/modules/__init__.py b/Checker_game_by_dz/modules/__init__.py index 78dc4841952..e9ab55df80d 100644 --- a/Checker_game_by_dz/modules/__init__.py +++ b/Checker_game_by_dz/modules/__init__.py @@ -1,4 +1,4 @@ """ -Auhtor : Dhruv B Kakadiya +Author : Dhruv B Kakadiya """ diff --git a/Compression_Analysis/PSNR.py b/Compression_Analysis/PSNR.py index b3148c64c77..08b5b853d4d 100644 --- a/Compression_Analysis/PSNR.py +++ b/Compression_Analysis/PSNR.py @@ -16,7 +16,7 @@ def calculate(img): def main(): - # Loading images (orignal image and compressed image) + # Loading images (original image and compressed image) orignal_image = cv2.imread("orignal_image.png", 1) compressed_image = cv2.imread("compressed_image.png", 1) diff --git a/Droplistmenu/GamesCalender.py b/Droplistmenu/GamesCalender.py index 12a29d110e6..48ff7c9d5a6 100644 --- a/Droplistmenu/GamesCalender.py +++ b/Droplistmenu/GamesCalender.py @@ -53,7 +53,7 @@ def show(): # Create button, it will change label text -button = Button(window, text="Add to calender", command=show).place(x=100, y=200) +button = Button(window, text="Add to calendar", command=show).place(x=100, y=200) # Create Label label = Label(window, text=" ") diff --git a/Electronics_Algorithms/resistance.py b/Electronics_Algorithms/resistance.py index 07cf335607c..6af000278a5 100644 --- a/Electronics_Algorithms/resistance.py +++ b/Electronics_Algorithms/resistance.py @@ -1,10 +1,10 @@ def resistance_calculator( - material: str, lenght: float, section: float, temperature: float + material: str, length: float, section: float, temperature: float ): """ material is a string indicating the material of the wire - lenght is a floating value indicating the lenght of the wire in meters + length is a floating value indicating the length of the wire in meters diameter is a floating value indicating the diameter of the wire in millimeters @@ -35,6 +35,6 @@ def resistance_calculator( temp_coefficient = materials[material]["coefficient"] rho = rho_20deg * (1 + temp_coefficient * (temperature - 20)) - resistance = rho * lenght / section + resistance = rho * length / section return f"{resistance}Ω" diff --git a/bank_managment_system/QTFrontend.py b/bank_managment_system/QTFrontend.py index 2f67009e322..f1b5523f789 100644 --- a/bank_managment_system/QTFrontend.py +++ b/bank_managment_system/QTFrontend.py @@ -1171,7 +1171,7 @@ def update_employee_data(name, password, salary, position, name_to_update): ) backend.conn.commit() show_popup_message( - stacked_widget, "Employee Upadate successfully", UPDATE_EMPLOYEE_PAGE2 + stacked_widget, "Employee Update successfully", UPDATE_EMPLOYEE_PAGE2 ) except: diff --git a/brickout-game/brickout-game.py b/brickout-game/brickout-game.py index 40aa05f001d..bdd44ce4766 100644 --- a/brickout-game/brickout-game.py +++ b/brickout-game/brickout-game.py @@ -33,7 +33,7 @@ screen = pygame.display.set_mode(size) """ - This is a simple Ball class for respresenting a ball + This is a simple Ball class for representing a ball in the game. """ diff --git a/requirements_with_versions.txt b/requirements_with_versions.txt index 732d54afd90..12772e21432 100644 --- a/requirements_with_versions.txt +++ b/requirements_with_versions.txt @@ -21,14 +21,14 @@ backend==0.2.4.1 win10toast==0.9 Counter==1.0.0 Flask==3.1.2 -selenium==4.37.0 +selenium==4.38.0 firebase-admin==7.1.0 ujson==5.10.0 requests==2.32.5 quo==2023.5.1 PyPDF2==3.0.1 pyserial==3.5 -twilio==9.8.4 +twilio==9.8.5 tabula==1.0.5 nltk==3.9.2 Pillow==12.0.0 @@ -49,7 +49,7 @@ auto-mix-prep==0.2.0 lib==4.0.0 pywifi==1.1.12 patterns==0.3 -openai==2.6.0 +openai==2.7.1 background==0.2.1 pydantic==2.12.3 openpyxl==3.1.2 @@ -58,7 +58,7 @@ requests-mock==1.12.1 pyglet==2.1.9 urllib3==2.5.0 thirdai==0.9.33 -google-api-python-client==2.186.0 +google-api-python-client==2.187.0 sound==0.1.0 xlwt==1.3.0 pygame==2.6.1 @@ -101,7 +101,7 @@ pytest==8.4.2 qrcode==8.2 googletrans==4.0.2 slab==1.8.2 -psutil==7.1.2 +psutil==7.1.3 mediapipe==0.10.21 rich==14.2.0 httplib2==0.31.0