8.99K subscribers
86 photos
2 videos
24 files
140 links
SIMPLYEASYLEARNING πŸ‘©β€πŸŽ“
Download Telegram
πŸ‘3
Here is the code to make a Pac-Man game πŸ‘‡πŸΌ

-
Install Pygame if you don’t have it already:

pip install pygame



Python Code for a Basic Pac-Man Game:

import pygame
import sys

# Initialize Pygame
pygame.init()

# Screen settings
WIDTH, HEIGHT = 600, 400
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Pac-Man Game")

# Colors
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
YELLOW = (255, 255, 0)
RED = (255, 0, 0)

# Clock for frame rate
clock = pygame.time.Clock()
FPS = 30

# Pac-Man settings
pacman_size = 20
pacman_x, pacman_y = WIDTH // 2, HEIGHT // 2
pacman_speed = 5
pacman_dir = "RIGHT"

# Ghost settings
ghost_size = 20
ghost_x, ghost_y = 100, 100
ghost_speed = 2

# Collectibles (dots)
dots = [(50, 50), (150, 100), (300, 200), (400, 300), (500, 150)]
dot_radius = 5

# Score
score = 0

# Game loop
running = True
while running:
screen.fill(BLACK)

# Handle events
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False

# Move Pac-Man
keys = pygame.key.get_pressed()
if keys[pygame.K_UP]:
pacman_y -= pacman_speed
pacman_dir = "UP"
if keys[pygame.K_DOWN]:
pacman_y += pacman_speed
pacman_dir = "DOWN"
if keys[pygame.K_LEFT]:
pacman_x -= pacman_speed
pacman_dir = "LEFT"
if keys[pygame.K_RIGHT]:
pacman_x += pacman_speed
pacman_dir = "RIGHT"

# Keep Pac-Man on screen
pacman_x = max(0, min(WIDTH - pacman_size, pacman_x))
pacman_y = max(0, min(HEIGHT - pacman_size, pacman_y))

# Draw Pac-Man
if pacman_dir == "RIGHT":
pygame.draw.pacman = pygame.draw.polygon(screen, YELLOW, [(pacman_x + pacman_size, pacman_y + pacman_size )
πŸ‘17❀5πŸ₯°3
Wish you a very Happy New Year! πŸŽ‰ May this year bring you success, happiness, and endless opportunities to shine
❀4πŸŽ‰3
Visit our website for more information: https://proextern.in/
πŸ‘2
secure your Wi-Fi from potential threats
import os
import subprocess

def get_connected_devices():
"""
Fetch a list of devices connected to your Wi-Fi network using ARP.
"""
try:
print("Fetching connected devices...")
devices = subprocess.check_output("arp -a", shell=True).decode()
print("Connected Devices:\n", devices)
except Exception as e:
print("Error fetching connected devices:", e)

def change_wifi_password(ssid, new_password):
"""
Update the Wi-Fi password on the router using the router's admin panel.
"""
print(f"Make sure to log in to your router's admin panel to change the password for Wi-Fi network: {ssid}")
print(f"Set the new password to: {new_password}")

def block_device(mac_address):
"""
Block a specific device from your network using its MAC address.
"""
try:
print(f"Blocking device with MAC address: {mac_address}...")
command = f"netsh wlan block allowmac={mac_address}"
os.system(command)
print(f"Device {mac_address} has been blocked.")
except Exception as e:
print("Error blocking device:", e)

def secure_wifi():
"""
Perform basic Wi-Fi security tasks.
"""
print("Securing your Wi-Fi network...\n")

# Step 1: Get a list of connected devices
get_connected_devices()

# Step 2: Change Wi-Fi password
ssid = input("\nEnter your Wi-Fi SSID: ")
new_password = input("Enter a new strong password for your Wi-Fi: ")
change_wifi_password(ssid, new_password)

# Step 3: Block suspicious devices
block_option = input("\nDo you want to block a suspicious device? (yes/no): ").strip().lower()
if block_option == "yes":
mac_address = input("Enter the MAC address of the device to block: ").strip()
block_device(mac_address)

print("\nWi-Fi security measures applied. Ensure your router settings are up-to-date!")

# Run the Wi-Fi security tool
secure_wifi()
πŸ‘6
free courses

1. Introduction to Generative AI
https://lnkd.in/gnSN7HP2

2. Google Data Analytics Professional Certificate
https://lnkd.in/ghknERaS

3. Agile Project Management
https://lnkd.in/g8vWniyi

4. Project Execution: Running the Project
https://lnkd.in/gsPQUwEb

5. Foundations of Project Management
https://lnkd.in/gCUVJVZd

6. Project Initiation: Starting a Successful Project
https://lnkd.in/gsxSBfwc

7. Project Planning: Putting It All Together
https://lnkd.in/ghbFf53S

8. Google Data Analytics:
https://lnkd.in/gJERiGi4

9. Fundamentals of digital marketing
https://lnkd.in/gMC7_uF8

10. Get Started with Python
https://lnkd.in/grjFzDif

11. Learn Python Basics for Data Analysis
https://lnkd.in/gMXMsS_Z

12. Data, ML, and AI in Google Cloud
https://lnkd.in/gQ46XgH4?

13. Google Cloud Computing Foundations: Networking and Security in Google Cloud
https://lnkd.in/gited4Gn?

14. Google Advanced Data Analytics Capstone
https://lnkd.in/gvviE9-m

15. Data Analysis with R Programming
https://lnkd.in/gX8Qk4tX
❀6πŸ‘6
πŸ‘7❀2
Step-by-Step guild to learn python in 2025
1. Google Ads Training By Google's Skillshop
β€’ Time: 28h24m
β€’ Certification: Yes
β€’ Cost: Free
Link: https://lnkd.in/g2MTic-e

2. Microsoft Advertising PPC Certification
β€’ Time: 8h40m
β€’ Certification: Yes
β€’ Cost: Free
Link: https://lnkd.in/g25Ux_DG

3. Google Ads for Beginners By Coursera
β€’ Time: 2h
β€’ Certification: Yes
β€’ Cost: Free
Link: https://lnkd.in/g8CWU7Cy

4. Google Ads Search Campaign By Coursera
β€’ Time: 2h
β€’ Certification: Yes
β€’ Cost: Free
Link: https://lnkd.in/gggn9R_A


5. Google Ads Essential Training by LinkedIn
β€’ Time: 2h24m
β€’ Certification: Yes
β€’ Cost: Free
Link: https://lnkd.in/g23Ue82b

6. Advanced Google Ads by LinkedIn
β€’ Time: 2h02m
β€’ Certification: Yes
β€’ Cost: Free
Link: https://lnkd.in/gq323P3D

7. PPC Fundamentals Course By Semrush
β€’ Time: 5h
β€’ Certification: Yes
β€’ Cost: Free
Link: https://lnkd.in/gxDrBiPu

8. PPC Foundations by Simplilearn
β€’ Time: 4h
β€’ Certification: Yes
β€’ Cost: Free
Link: https://lnkd.in/grSpMvNb

9. Diploma in Google Ads By Alison
β€’ Time: 15h
β€’ Certification: Yes
β€’ Cost: Free
Link: https://lnkd.in/gifrQaq4
πŸ‘8❀2
Useful Excel Shortcuts:

● Ctrl + A: Select all contents of the page.
● Ctrl + B: Bold highlighted selection.
● Ctrl + C: Copy selected text.
● Ctrl + X: Cut selected text.
● Ctrl + P: Open the print window.
● Ctrl + F: Open find box.
●Ctrl + I: Italic highlighted selection.
● Ctrl + K: Insert link (Shortcut Keys and their Functions).
● Ctrl + U: Underline highlighted selection.
● Ctrl + V: Paste.
● Ctrl + Y: Redo the last action performed.
● Ctrl + Z: Undo last action.
● Ctrl + L: Aligns the line or selected text to the left of the screen.
● Ctrl + E: Aligns the line or selected text to the center of the screen.
● Ctrl + R: Aligns the line or selected text to the right of the screen.
● Ctrl + M: Indent the paragraph.
● Ctrl + Shift + F: Change the font.
● Ctrl + Shift + >: Increase selected font +1pts up to 12pt and then increases font +2pts.
● Ctrl + ]: Increase selected font +1pts.
● Ctrl + Shift + <: Decrease selected font -1pts if 12pt or lower, if above 12 decreases font by +2pt.
● Ctrl + [: Decrease selected font -1pts.
● Ctrl + Shift + *: View or hide non printing characters.
● Ctrl + L: Moves one word to the left.
● Ctrl + R: Moves one word to the right.
● Ctrl + : Moves to the beginning of the line or paragraph.
● Ctrl + : Moves to the end of the paragraph.
● Ctrl + Del: Deletes word to right of cursor.
● Ctrl + Backspace: Deletes word to left of cursor.
● Ctrl + End: Moves the cursor to the end of the
document.
● Ctrl + Home: Moves the cursor to the beginning of the document.
● Ctrl + Spacebar: Reset highlighted text to the default font.
● Ctrl + 1: Single-space lines.
● Ctrl + 2: Double-space lines.
● Ctrl + 5: 1.5-line spacing.
● Ctrl + Alt + 1: Changes text to heading 1.
● Ctrl + Alt + 2: Changes text to heading 2.
● Ctrl + Alt + 3: Changes text to heading 3.
● Alt + Shift + D: Insert the current date.
● Alt + Shift + T: Insert the current time.

β—‰ Alt + F: File menu options in current program.
β—‰ Alt + E: Edit options in current program.
β—‰ F1: Universal Help in almost every Windows program.
β—‰ Ctrl + A: Select all text.
β—‰ Ctrl + X: Cut
β—‰ Shift + Del: Cut selected item.
β—‰ Ctrl + C: Copy selected item.
β—‰ Ctrl + Ins: Copy selected item.
β—‰ Ctrl + V: Paste selected item.
β—‰ Shift + Ins: Paste.
β—‰ Home: Goes to beginning of current line.
β—‰ Ctrl + Home: Goes to beginning of document.
β—‰ End: Goes to end of current line.
β—‰ Ctrl + End: Goes to end of document.
β—‰ Shift + Home: Highlights from current position to beginning of line.
β—‰ Shift + End: Highlights from current position to end of line.
β—‰ Ctrl + Left arrow: Moves one word to the left at a time.
β—‰ Ctrl + Right arrow: Moves one word to the right at a time.
πŸ†’14πŸ‘12❀8
IMG_4530.JPG
517.1 KB
SQL interview cheatsheet
❀2
πŸ‘2
❀1
❀2
❀1
Free Certification Courses to Learn Data Science in 2025:

1. Python
πŸ”— imp.i384100.net/5gmXXo

2. SQL
πŸ”— edx.org/learn/relation…

3. Statistics and R
πŸ”— edx.org/learn/r-progra…

4. Data Science: R Basics
πŸ”—edx.org/learn/r-progra…

5. Excel and PowerBI
πŸ”— learn.microsoft.com/en-gb/training…

6. Data Science: Visualization
πŸ”—edx.org/learn/data-vis…

7. Data Science: Machine Learning
πŸ”—edx.org/learn/machine-…

8. R
πŸ”—imp.i384100.net/rQqomy

9. Tableau
πŸ”—imp.i384100.net/MmW9b3

10. PowerBI
πŸ”— lnkd.in/dpmnthEA

11. Data Science: Productivity Tools
πŸ”— lnkd.in/dGhPYg6N

12. Data Science: Probability
πŸ”—mygreatlearning.com/academy/learn-…

13. Mathematics
πŸ”—matlabacademy.mathworks.com

14. Statistics
πŸ”— lnkd.in/df6qksMB

15. Data Visualization
πŸ”—imp.i384100.net/k0X6vx

16. Machine Learning
πŸ”— imp.i384100.net/nLbkN9

17. Deep Learning
πŸ”— imp.i384100.net/R5aPOR

18. Data Science: Linear Regression
πŸ”—pll.harvard.edu/course/data-sc…

19. Data Science: Wrangling
πŸ”—edx.org/learn/data-sci…

20. Linear Algebra
πŸ”— pll.harvard.edu/course/data-an…

21. Probability
πŸ”— pll.harvard.edu/course/data-sc…

22. Introduction to Linear Models and Matrix Algebra
πŸ”—edx.org/learn/linear-a…

23. Data Science: Capstone
πŸ”— edx.org/learn/data-sci…

24. Data Analysis
πŸ”— pll.harvard.edu/course/data-an…

25. IBM Data Science Professional Certificate
imp.i384100.net/9gxbbY

26. Neural Networks and Deep Learning
imp.i384100.net/DKrLn2

27. Supervised Machine Learning: Regression and Classification
imp.i384100.net/g1KJEA