MCPcopy Create free account

hub / github.com/Mrinank-Bhowmick/python-beginner-projects / functions

Functions1,516 in github.com/Mrinank-Bhowmick/python-beginner-projects

↓ 2 callersMethoddrawWhiteDisc
(self, coords: tuple[int, int], radius: int, radius_diff: int)
projects/Othello/src/utils/setup.py:98
↓ 2 callersFunctiondraw_board
(board)
projects/Connect Four/main.py:84
↓ 2 callersMethoddraw_food
(self, food)
projects/Snake Game/src/display.py:48
↓ 2 callersMethoddraw_snake
(self, snake)
projects/Snake Game/src/display.py:33
↓ 2 callersFunctiondrop_piece
(board, row, col, piece)
projects/Connect Four/main.py:20
↓ 2 callersFunctiondump
(endpoint, toget)
projects/reddit-scraper/grabnews.py:11
↓ 2 callersMethodenemy_hit
(self, enemy: Enemies)
projects/Space Shooter/main.py:446
↓ 2 callersFunctionentryDisplayer
()
projects/Tic-Tac-Toe/TicTacToe-GUI/tic tac.py:89
↓ 2 callersMethodexiste_registro
(self, cpf)
projects/Mongo CRUD/usuario.py:59
↓ 2 callersMethodextract_words
(self)
projects/QuickWordCloud/main.py:9
↓ 2 callersFunctioneye_aspect_ratio
(eye)
projects/Drowsiness Detector/main.py:26
↓ 2 callersFunctioneye_aspect_ratio
(eye)
projects/Eye Blink Detection/main.py:19
↓ 2 callersFunctionface_extractor
(img)
projects/facerecoginition/FaceCapture.py:8
↓ 2 callersMethodfinPos
(self, image, handNo=0)
projects/HandTrack/HTrackMod.py:43
↓ 2 callersMethodfindHands
(self, image, draw=True)
projects/HandTrack/HTrackMod.py:22
↓ 2 callersFunctionfind_determinant
(matrix)
projects/Inverse Matrix Calculator/main.py:66
↓ 2 callersFunctionfind_determinant
(matrix)
web/public/playground/inverse-matrix-calculator.py:72
↓ 2 callersFunctionfind_empty
Finds an empty cell and returns its position as a tuple
projects/Sudoku-Solver/sudokutools.py:23
↓ 2 callersFunctionfloatValidation
(question)
projects/Loan Calculator/main.py:35
↓ 2 callersFunctionfloatValidation
(question)
web/public/playground/loan-calculator.py:41
↓ 2 callersFunctionframe_range
Return a range object with with scene's frame start, end, and step
projects/Blender_tools/vertex_animation.py:73
↓ 2 callersMethodfrom_json_str
Creates an expense or income Item instance from a JSON string. Args: json_str (str): JSON string representing the item.
projects/Expense-Tracker/item.py:163
↓ 2 callersFunctiongame_over
(x, y)
projects/space_battle/main.py:62
↓ 2 callersFunctiongenerate_column_ship_cells
Generator function to yield coordinates of ships aligned in columns. Args: board_size (int): The size of the game board. Yields
projects/Battleship/battleship_v2/utils.py:27
↓ 2 callersMethodgenerate_random_ship_arrangements
Generate random ship arrangements for the opponent's board and place them.
projects/Battleship/battleship_v2/player.py:30
↓ 2 callersFunctiongenerate_row_ship_cells
Generator function to yield coordinates of ships aligned in rows. Args: board_size (int): The size of the game board. Yields:
projects/Battleship/battleship_v2/utils.py:8
↓ 2 callersFunctiongetBoardCopy
(board)
projects/Tic-Tac-Toe/Tic-Tac-Toe-Terminal/main.py:64
↓ 2 callersFunctiongetBookmarks
()
web/src/lib/bookmarks.ts:5
↓ 2 callersFunctiongetFilesWithPrefix
get all files with a certain prefix Args: folderPath (str): path to folder to search Returns:
projects/fill-gaps/fill_gaps.py:6
↓ 2 callersFunctiongetNextComic
(soup)
projects/Comics_Scraper/comicXCD_scraper.py:66
↓ 2 callersMethodget_account
Retrieves a BankAccount object based on the account number. Args: account_number (str): The account number to look up.
projects/Python Banking System/Banking.py:38
↓ 2 callersMethodget_account
(self, account_number)
web/public/playground/python-banking-system.py:26
↓ 2 callersMethodget_board_for_player
Gets the Board States from Player's POV.
projects/Battleship/battleship_v2/board.py:116
↓ 2 callersFunctionget_comparative_form
(adj)
projects/Adjactive_compartive_superlative/adjCS.py:36
↓ 2 callersFunctionget_coord
converts relative coordinates to pixel coordinates
projects/Seek_with_hand_track/main.py:13
↓ 2 callersMethodget_items_by_category
Retrieves items by category name. Args: category_name (str): The name of the category. Returns: Lis
projects/Expense-Tracker/item.py:351
↓ 2 callersMethodget_items_by_date_range
Retrieves items within a specified date range. Args: start (str): The start date of the range in "YYYY-MM-DD" format.
projects/Expense-Tracker/item.py:334
↓ 2 callersMethodget_location_by_name
(self, location)
projects/Skycast/get_geolocation/geolocation.py:8
↓ 2 callersFunctionget_next_open_row
(board, col)
projects/Connect Four/main.py:28
↓ 2 callersMethodget_stats_by_category
Calculates statistics for each category in the database. Returns: dict: A dictionary containing statistics for each cate
projects/Expense-Tracker/expense_income_stats.py:99
↓ 2 callersFunctionget_superlative_form
(adj)
projects/Adjactive_compartive_superlative/adjCS.py:45
↓ 2 callersFunctionget_team_stats
(url)
projects/World-Cup-Player-Comparison/main.py:37
↓ 2 callersFunctionget_word
easy_wordlist (list): list of words (strings) - for easy difficulty level medium_wordlist (list): list of words (strings) - for medium diffic
projects/Hangman/main.py:108
↓ 2 callersFunctionhangman
List of Symbolic representation of losing the tries / for wrong attempts (THE HANGMAN)
projects/Hangman/main.py:8
↓ 2 callersMethodinsert_item
Inserts a single item into the database. Args: item (Item): The item to insert into the database.
projects/Expense-Tracker/item.py:254
↓ 2 callersFunctionisBoardFull
(board)
projects/Tic-Tac-Toe/Tic-Tac-Toe-Terminal/main.py:134
↓ 2 callersFunctionis_valid_location
(board, col)
projects/Connect Four/main.py:24
↓ 2 callersFunctionisip
(ip: str)
projects/IP Blacklist Checker/blacklist_checker.py:39
↓ 2 callersFunctionjudge_leap_year
(year)
web/public/playground/calculate-age.py:10
↓ 2 callersFunctionlettersOnly
(password)
projects/Password Projects/Password Meter/meter_pass.py:102
↓ 2 callersMethodlock_piece
Lock the piece in place and create a new piece
projects/Tetris Game/tetrisGame.py:97
↓ 2 callersFunctionlogin
()
projects/student-management-system/With Login System.py:160
↓ 2 callersFunctionls
(contents)
projects/Merge PDFs/main.py:8
↓ 2 callersFunctionmain
()
projects/Chat Application/chatapp.py:29
↓ 2 callersFunctionmain
()
projects/Tile Matching/tile_matching.py:130
↓ 2 callersFunctionmiddleNumberOrSymbol
(password)
projects/Password Projects/Password Meter/meter_pass.py:62
↓ 2 callersMethodmove
Moves the snake in the given direction. Args: direction (Direction): The direction to move the snake. Returns:
projects/Snake Game/src/snake.py:21
↓ 2 callersMethodnew_piece
(self)
projects/Tetris Game/tetrisGame.py:66
↓ 2 callersFunctionnl
(s: string)
web/src/components/Playground.tsx:95
↓ 2 callersFunctionnumberOfCharacters
(password)
projects/Password Projects/Password Meter/meter_pass.py:12
↓ 2 callersFunctionnumbersOnly
(password)
projects/Password Projects/Password Meter/meter_pass.py:117
↓ 2 callersMethodobjects
(self)
projects/Space Shooter/main.py:91
↓ 2 callersMethodplacePieces
(self)
projects/Chess/main.py:350
↓ 2 callersMethodplace_ships
Place ships for the specified player. Args: player_name (str): The name of the player. ships_coordinates (li
projects/Battleship/battleship_v2/test_battleship.py:218
↓ 2 callersFunctionplay
Starts up an interactive game of Hangman. * At the start of the game, let the user know how many letters the secret_word contains an
projects/Hangman/main.py:143
↓ 2 callersFunctionplay_innings
(player, overs, max_wickets)
projects/Game of Cricket/main.py:16
↓ 2 callersFunctionplay_innings
(player, overs, max_wickets)
web/public/playground/game-of-cricket.py:21
↓ 2 callersMethodplayer_hit
(self, collision: pygame.Rect)
projects/Space Shooter/main.py:450
↓ 2 callersFunctionprint_board
(board)
projects/Connect Four/main.py:34
↓ 2 callersFunctionprint_matrix
(matrix, text="")
projects/Inverse Matrix Calculator/main.py:96
↓ 2 callersFunctionprint_matrix
(matrix, text="")
web/public/playground/inverse-matrix-calculator.py:104
↓ 2 callersMethodprint_player_board
Print the current battlefield situation and targets for the specified player. Args: player (Player): The player whose pe
projects/Battleship/battleship_v2/utils.py:261
↓ 2 callersMethodprompt_name
Prompt the user to input a name. Args: prompt_message (str): Message to prompt the user for input. error_mes
projects/Battleship/battleship_v2/utils.py:154
↓ 2 callersFunctionpublish
(client, msg="Hello MQTT")
projects/MQTT Client/MqttClient.py:45
↓ 2 callersFunctionraiseError
(error)
projects/Spotify Player/main.py:115
↓ 2 callersMethodrender_game_over
(self)
projects/Snake Game/src/display.py:62
↓ 2 callersFunctionrequirements
(password)
projects/Password Projects/Password Meter/meter_pass.py:76
↓ 2 callersMethodresetColor
(self)
projects/Chess/main.py:510
↓ 2 callersMethodreset_enemies
(self, enemies: Enemies, condition: bool)
projects/Space Shooter/main.py:344
↓ 2 callersMethodreset_game
(self)
projects/Speed-Type-test/Speed Typing Test Python/speed typing.py:141
↓ 2 callersFunctionresize_image
(image_path, size)
projects/Resize_Image/resize.py:5
↓ 2 callersFunctionrestart
(x, y)
projects/space_battle/main.py:82
↓ 2 callersMethodrestart_game
Resets the state of the game.
projects/Snake Game/src/game.py:123
↓ 2 callersMethodrm_card
(self)
projects/Card Game/card.py:64
↓ 2 callersMethodrm_card
(self)
web/public/playground/card-game.py:73
↓ 2 callersFunctionscore_display
(game_state)
projects/Flappybird_game/main.py:54
↓ 2 callersFunctionseconds_to_timestamp
Return timestamp from seconds. Include milliseconds if ms is True.
projects/Qt5_YouTube/main.py:30
↓ 2 callersMethodselect
(self, code: int)
projects/Space Shooter/main.py:167
↓ 2 callersMethodself_collision
Checks if the snake collides with itself. Returns: bool: True if the snake collides with its body, False otherwise.
projects/Snake Game/src/snake.py:43
↓ 2 callersFunctionsequentialLetters
(password)
projects/Password Projects/Password Meter/meter_pass.py:185
↓ 2 callersFunctionsequentialNumbers
(password)
projects/Password Projects/Password Meter/meter_pass.py:170
↓ 2 callersFunctionsetRail
(v: boolean)
web/src/components/PlaygroundSidebar.tsx:104
↓ 2 callersMethodset_discs
Set the discs on the board as per the move made on the given cell
projects/Othello/src/utils/board.py:110
↓ 2 callersMethodset_neuron
Set x, y to a Neuron.
projects/Neurons/main.py:59
↓ 2 callersMethodset_neuron
(self, x, y)
web/public/playground/neurons.py:59
↓ 2 callersFunctionshow_highscore
(x, y)
projects/car game/Game.py:203
↓ 2 callersFunctionshow_score
(x, y)
projects/car game/Game.py:195
↓ 2 callersFunctionspeak
(audio)
projects/Medium Article Reader/main.py:20
↓ 2 callersFunctionstart_game
()
projects/Type Racer Game/type_racer.py:32
↓ 2 callersFunctionstart_v
()
projects/Subnetting Flsm/subnetting_flsm.py:3
← previousnext →201–300 of 1,516, ranked by callers