Skip to main content

Featured

VIDEO DOWNLOADER USING PYTHON

 SO IN THIS BLOG I WILL SHOW THE VIDEO DOWNLOADER.SO YOU HAVE TO ENTER THE LINK OF THE VIDEO AND PASTE IT IN THE PROGRAM AND IT WILL BE DOWNLOADED IN THE FOLDER YOU HAVE SAVED IT.SO YOU CAN MAKE A FOLDER FOR THIS PROGRAM. REQIREMENTS :- pip install pytube SOURCE CODE-: from pytube import YouTube  url = input("enter the url of video: ") my_video = YouTube(url) print("***********video title***********") print(my_video.title) print("***********thumbnail image***********") print(my_video.thumbnail_url)      print("downloading video") my_video = my_video.streams.get_highest_resolution() my_video.download() print("video downloaded") SO THIS IS THE SOURCE CODE. THANK YOU.

GUESSING NUMBER

HELLO EVERYONE TODAY I WILL SHARE A NEW PYTHON GAME WHICH IS GUESSING NUMBER AND I AM SORRY I DID NOT POST ANY BLOG LAST FEW DAYS SO TODAY I WILL UPLOAD PYTHON FILES AND TRY TO COVER UP ALL THE PAST DAYS AND MY FRIEND HAS MADE A WEBSITE:- https://sites.google.com/view/pythonprojects2/home
SO PLEASE CHECK THIS AND HE WILL SHARE HIS PYTHON FILES WITH YOU

SOURCE CODE FOR GUESSING GAME :-

import random

the_number = random.randint(1, 100)
guess = int(input("Guess a number between 1 and 100:"))
while guess != the_number:
    if guess > the_number:
        print("guess was too high. try again")
    if guess < the_number:
        print("the number is too low. try again")
    guess = int(input("guess again:"))
print(guess,"was the number! you win")


THIS IS A SHORT SOURCE CODE AND I HOPE YOU TRY IT OUT AND TELL ME YOU LIKED IT OR NOT AND COMMENT AND FOLLOW ME



Comments

Post a Comment

Popular Posts