Skip to main content

Posts

Showing posts with the label python

Future-Proof Your IT Career | Top Programming Languages To Learn in 2024

Top Programming Languages to Learn in 2024 In the dynamic landscape of technology, staying ahead requires continuous learning and adaptation. Programming languages are the backbone of software development and mastering the right language can significantly boost your career in the IT industry.  As we step into 2024, here are some top programming languages that promise high demand and exciting opportunities: 1. Python: Python has been a dominant force in the programming world for years and shows no signs of slowing down. Its simplicity, versatility, and vast libraries make it ideal for web development, data analysis, artificial intelligence, and machine learning. Its readability also makes it an excellent language for beginners. 2. JavaScript: JavaScript remains a powerhouse for web development. With frameworks like React, Angular, and Vue.js, it continues to evolve, enabling the creation of interactive and dynamic web pages. Its versatility extends to server-side development (Node.js) a

Make a Virtual Pen and Eraser Using Python || Virtual Pen and Eraser Using OpenCV || Draw Using a Virtual Pen || Creation Code

 Introduction The project aims to create a virtual pen and eraser using OpenCV and python. This project is very simple and easy to implement. The code is given in this article which you can easily copy and paste into a file and run it on your machine. In this article, we will be using OpenCV for detection of the mouse movements, PyQt5 for GUI creation, Numpy for storing data as well as NumPy array manipulation functions such as slicing and indexing along with Pandas Dataframes which are very helpful while working with Numpy arrays. Virtual Pen and Eraser Using OpenCV In this section, you will learn how to create a virtual pen and eraser by using OpenCV. The first step is importing the required Python libraries. We need to import the cv2 module from opencv library import cv2 import numpy as np This project aims to create a virtual pen and eraser using OpenCV and Python The project aims to create a virtual pen and eraser using opencv and python. This is a very interesting topic for th

How to Make Gesture Controlled Snake Game in Python || Python code for snake game - Creation Code

 How to make a snake game in python? History of Snake Game: Snake is a video game genre where the player maneuvers a growing line that becomes a primary obstacle to itself. The concept originated in the 1975 two-player arcade game Blockade from Gremlin Industries, and the ease of implementation has led to hundreds of versions (some of which have the word snake or worm in the title) for many segments. After a variant was preloaded on Nokia mobile phones in 1998, there was a resurgence of interest in snake games as it found a larger audience. There are several hundred snake games for iOS alone. Modules: cv2 cvzone matplotlib scipy sklearn Roadmap: Problems Our first work will be to againcognising the hand Then find the point of the finger Now we will going to create a point with the finger We need to create a logic where the point will increase as we move the finger Next step is to stop the snake game when the coordinate of the points clash with each other Create random foods for the sna

Live IPL Score Using Python || Python Code for Live Cricket Score || IPL Match Detail Program in Python || Live Cricket Score - Creation Code

  Live IPL Score Using Python Hello coders, we are going to learn how we can create a GUI application to build a live score updater using python. We are going to use web scraping using BeautifulSoup class from bs4. We will use the crickbuzz for scraping Module to Be used: tkinter - Preinstalled module request - For requesting the webserver bs4 - It is used for web scraping Installation: pip install request pip install beautifulsoup4 Code: from tkinter import * import requests from bs4 import BeautifulSoup # create instance for window root = Tk () # set title for window root. title (" Indian Premier League ") # screen color configure root. config ( background = " skyblue ") # cricbuzz url to get score updates url = " https://www.cricbuzz.com/ " def get_score ():     # request data from cricbuzz     page = requests. get ( url )     soup = BeautifulSoup ( page . text ,' html.parser ')     # name of first team     team_1 = soup. find_all ( cl

Auto Programming With Python || How do You Automate a Programm Using Python || Fun with Python - Creation Code

  Auto Programming with Python In this post, we will create an auto program using python. In this auto program, we will send a message to your friend  Module to Be Used: pyautogui random Code: #creation code import random import pyautogui as pg import time text = ('like this video', 'subscribe') time.sleep(10) #creation code for i in range (100):     t = random.choice(text)     pg.write('Please ' + t)     pg.press('enter') Follow my socials: Youtube: https://www.youtube.com/channel/UCU1qNFntn7dCi9uqyvrGKOg Instagram:  https://www.instagram.com/python.math/ Twitter: https://twitter.com/Pritish369 For any question or coding discussion, you can join my discord or telegram: Discord: https://discord.gg/be7MmSuV Telegram: https://t.me/Python_Math_Community

Volume Control With Hand Using Python || How do you controll gestures in Python - Creation Code

Introduction: Gesture recognition helps computers to understand human body language. This helps to build a more potent link between humans and machines, rather than just the basic text user interface or graphical user interfaces(GUIs). In this project for gesture recognition, the human body's motions are read by a computer camera. The computer then makes use of this data as input to handle applications. The objective of this project is to develop an interface that will capture human hand gestures dynamically and will control the volume level Code: import cv2 import mediapipe as mp from math import hypot from ctypes import cast , POINTER from comtypes import CLSCTX_ALL from pycaw . pycaw import AudioUtilities , IAudioEndpointVolume import numpy as np cap = cv2 . VideoCapture ( 0 ) mpHands = mp . solutions .hands hands = mpHands .Hands() mpDraw = mp . solutions .drawing_utils devices = AudioUtilities . GetSpeakers () interface = devices .Activate( IAudioEnd

Write a Python program to count all the line having a as first character || Count number of lines in Python - Creation Code

Why counting the number of lines is important? Counting the number of characters is important because almost all the text boxes that rely on user input have a certain limit on the number of characters that can be inserted. For example, the character limit on a Facebook post is 63,206 characters. Whereas, for a tweet on Twitter the character limit is 140 characters and the character limit is 80 per post for Snapchat. We will make a change on this process we will just count the number of lines that have 'a' as the first character. Approach: Open the file in reading mode and assign a file object named 'file' Assign 0 to the counter variable Read the content of the file using the read function and assign it to a variable named 'content' Create a list of the content where the elements is split wherever they encounter an '\n' Implement: Suppose here we create a file called creationcode.txt and we need to read this file Code: #opening the file in read mode file