Yousef Computer Science
Yousef Computer Science
  • 76
  • 11 187
Python Password Generator Project (EASY)🐍
PLEASE LIKE AND SUBSCRIBE ITS FREE!
Full Python Playlist:
ua-cam.com/play/PLFftcnXWKpHwOdUD4yrAPwNlDT9On41cg.html&si=SRrtakIm9eQJth1i
#beginners #tutorial #python
Check out my other videos to learn more computer science & programming concepts please :)
Code used in the video will be pinned in the comments!
Socials and other platforms:
linktr.ee/Yousef1291_
Переглядів: 442

Відео

FULL PYTHON FULL COURSE FOR FREE!🐍
Переглядів 3 тис.2 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! Full Python Playlist: ua-cam.com/play/PLFftcnXWKpHwOdUD4yrAPwNlDT9On41cg.html&si=SRrtakIm9eQJth1i #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Duck Typing In Python In 4 Minutes!🐍
Переглядів 1812 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Objects as Arguments In Python In 4 Minutes!🐍
Переглядів 1582 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Super Function In Python (For Beginners)!🐍
Переглядів 1812 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Method Chaining In Python (For Beginners)!🐍
Переглядів 772 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Python Quiz Game (For Beginners)!🐍
Переглядів 5933 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Method Overriding In Python is Easy!🐍
Переглядів 643 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Multiple Inheritance In Python Is Easy!🐍
Переглядів 383 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Multi-level Inheritance In Python Is Easy!🐍
Переглядів 1623 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Inheritance In Python Is Easy!🐍
Переглядів 913 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Python Object Oriented Programming!🐍
Переглядів 783 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Rock, Paper, Scissors Game In Python!🐍
Переглядів 3023 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Modules In Python are Easy!🐍
Переглядів 373 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
Deleting Files In Python is Easy!🐍
Переглядів 243 місяці тому
PLEASE LIKE AND SUBSCRIBE ITS FREE! #beginners #tutorial #python Check out my other videos to learn more computer science & programming concepts please :) Code used in the video will be pinned in the comments! Socials and other platforms: linktr.ee/Yousef1291_
File Moving In Python is Easy!🐍
Переглядів 413 місяці тому
File Moving In Python is Easy!🐍
Copying Files In Python is Easy!🐍
Переглядів 413 місяці тому
Copying Files In Python is Easy!🐍
File Writing In Python is Easy!🐍
Переглядів 343 місяці тому
File Writing In Python is Easy!🐍
File Reading In Python is Easy!🐍
Переглядів 423 місяці тому
File Reading In Python is Easy!🐍
File Detection In Python is Easy!🐍
Переглядів 493 місяці тому
File Detection In Python is Easy!🐍
Nested Functions In Python are Easy!🐍
Переглядів 273 місяці тому
Nested Functions In Python are Easy!🐍
2D Lists In Python Are Easy!🐍
Переглядів 763 місяці тому
2D Lists In Python Are Easy!🐍
String Slicing In Python is Easy!🐍
Переглядів 313 місяці тому
String Slicing In Python is Easy!🐍
Math Functions In Python are Easy!🐍
Переглядів 983 місяці тому
Math Functions In Python are Easy!🐍
String Formatting In Python is Easy!🐍
Переглядів 423 місяці тому
String Formatting In Python is Easy!🐍
MY PERSONAL E-PORTFOLIO WEBSITE :D
Переглядів 1373 місяці тому
MY PERSONAL E-PORTFOLIO WEBSITE :D
Exception Handling In Python is Easy!🐍
Переглядів 1253 місяці тому
Exception Handling In Python is Easy!🐍
Day 3: Coding Everyday Until Employed Learn Introductory JavaScript by Building a Pyramid Generator
Переглядів 1053 місяці тому
Day 3: Coding Everyday Until Employed Learn Introductory JavaScript by Building a Pyramid Generator
Day 2: Coding Everyday Until Employed Learn Introductory JavaScript by Building a Pyramid Generator
Переглядів 1033 місяці тому
Day 2: Coding Everyday Until Employed Learn Introductory JavaScript by Building a Pyramid Generator
Day 1: Coding Everyday Until Employed Learn Introductory JavaScript by Building a Pyramid Generator
Переглядів 374 місяці тому
Day 1: Coding Everyday Until Employed Learn Introductory JavaScript by Building a Pyramid Generator

КОМЕНТАРІ

  • @AnuragS10
    @AnuragS10 8 днів тому

    def generatePassword(length): characters = string.ascii_letters + string.digits + string.punctuation while True: # Keep generating until the password meets the criteria password = ''.join(random.choice(characters) for i in range(length)) if (any(c.islower() for c in password) # At least one lowercase letter and any(c.isupper() for c in password) # At least one uppercase letter and any(c.isdigit() for c in password) # At least one digit and any(c in string.punctuation for c in password)): # At least one special character return password while True: length = int(input("Enter a password length (or 0 to quit): ")) if length == 0: break elif length < 4: # Ensure the length is enough to meet all criteria print("Password length must be at least 4 to meet all criteria.") else: print(f'Generated password: {generatePassword(length)}')

    • @YousefCompSci
      @YousefCompSci 8 днів тому

      very nice way to add on to the project!

  • @yousef.ls3
    @yousef.ls3 11 днів тому

  • @Monsta1291
    @Monsta1291 11 днів тому

  • @YousefCompSci
    @YousefCompSci 11 днів тому

    import random import string def generate_pasword(length): characters = string.ascii_letters + string.digits + string.punctuation password = ''.join(random.choice(characters) for _ in range(length)) return password while True: length = int(input("Enter a password length (or 0 to exit): ")) if length == 0: break print(f"Generated password: {generate_pasword(length)}")

    • @eddiemeddie2018
      @eddiemeddie2018 9 днів тому

      You are awesome for showing us this project. Thanks for the video!

    • @YousefCompSci
      @YousefCompSci 8 днів тому

      @@eddiemeddie2018 my pleasure; thanks for the comment!

  • @nonenone2760
    @nonenone2760 15 днів тому

    Greatt courses .. do not stop 👍🏻👍🏻👏🏻👏🏻👏🏻

  • @stylocreations5081
    @stylocreations5081 22 дні тому

    Then make a video on python asyncio websocket for real-time interaction for multiplayer chess game

    • @YousefCompSci
      @YousefCompSci 21 день тому

      @@stylocreations5081 I’m not familiar with it at the moment, but I will definitely consider it.

  • @manojhcstd
    @manojhcstd Місяць тому

    ❤️‍🔥❤️‍🔥❤️‍🔥

  • @hamedrezayi5949
    @hamedrezayi5949 Місяць тому

    Thank you , could you please make tutorial about lazarus freepascal programming?

    • @YousefCompSci
      @YousefCompSci 21 день тому

      @@hamedrezayi5949 I’m not familiar with it at the moment, but I will definitely consider it.

  • @Yousefsmemes
    @Yousefsmemes Місяць тому

  • @ГордійКоцюба-д4ю
    @ГордійКоцюба-д4ю 2 місяці тому

    Thank you, for your video. Wish you luck!

  • @YousefCompSci
    @YousefCompSci 2 місяці тому

    # duck typing = concept where the class of an object is less important than the methods/attributes # class type is not checked if minimum methods/attributes are present # “If it walks like a duck, and it quacks like a duck, then it must be a duck.” class Duck: def walk(self): print("This duck is walking") def talk(self): print("This duck is qwuacking") class Chicken: def walk(self): print("This chicken is walking") def talk(self): print("This chicken is clucking") class Person(): def catch(self, duck): duck.walk() duck.talk() print("You caught the animal") duck = Duck() chicken = Chicken() person = Person() person.catch(duck)

  • @Monsta1291
    @Monsta1291 2 місяці тому

    🎉🎉🎉

  • @Monsta1291
    @Monsta1291 2 місяці тому

  • @YousefCompSci
    @YousefCompSci 2 місяці тому

    class Man: name = None class Woman: name = None def change_name(person, name): person.name = name man_1 = Man() man_2 = Man() man_3 = Man() woman = Woman() change_name(man_1, "Mike") change_name(man_2, "John") change_name(man_3, "Yousef") change_name(woman, "Lisa") print(man_1.name) print(man_2.name) print(man_3.name) print(woman.name)

  • @keto_3men225
    @keto_3men225 2 місяці тому

  • @Monsta1291
    @Monsta1291 2 місяці тому

  • @YousefCompSci
    @YousefCompSci 2 місяці тому

    # super() = Function used to give access to the methods of a parent class. # Returns a temporary object of a parent class when used class Rectangle: def __init__(self,length, width): self.length = length self.width = width class Square(Rectangle): def __init__(self, length, width): super().__init__(length, width) def area(self): return self.length * self.width class Cube(Rectangle): def __init__(self,length,width,height): super().__init__(length, width) self.height = height def volume(self): return self.length * self.width * self.height square = Square(3, 3) cube = Cube(3, 3, 3) print(cube.volume()) print(square.area())

  • @Monsta1291
    @Monsta1291 3 місяці тому

    🎉🎉🎉

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    # method chaining = calling methods sequentially class Routine: def wake_up(self): print("This person is now awake") return self def eat(self): print("This person is now eating breakfast... yum") return self def drive(self): print("Driving to work VROOM") return self def work(self): print("This person is now at work and working") return self routine = Routine() routine.wake_up()\ .eat()\ .drive()\ .work()

  • @nispatel89
    @nispatel89 3 місяці тому

    Thanks for tutorial!

  • @yousef.ls3
    @yousef.ls3 3 місяці тому

    🎉🎉🎉

  • @yousef.ls3
    @yousef.ls3 3 місяці тому

    🎉🎉🎉

  • @Monsta1291
    @Monsta1291 3 місяці тому

    love it, nice

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    # python quiz game questions = ("What is the capital of France?: ", "Who wrote the novel '1984'?: ", "What is the largest ocean on Earth?: ", "How many continents are there?: ", "What is the square root of 64?: ") options = (("A. Berlin", "B. Madrid", "C. Paris", "D. Rome"), ("A. George Orwell", "B. Ernest Hemingway", "C. F. Scott Fitzgerald", "D. J.K. Rowling"), ("A. Atlantic Ocean", "B. Indian Ocean", "C. Pacific Ocean", "D. Arctic Ocean"), ("A. 5", "B. 6", "C. 7", "D. 8"), ("A. 6", "B. 7", "C. 8", "D. 9")) answers = ("C", "A", "C", "C", "C") guesses = [] score = 0 question_num = 0 for question in questions: print("--------------------") print(question) for option in options[question_num]: print(option) guess = input("Enter (A B C D): ").upper() guesses.append(guess) if guess == answers[question_num]: score += 1 print("Correct!") else: print("INCORRECT!") print(f"{answers[question_num]} is the correct answer") question_num += 1 print("---------------------------") print("----------RESULTS----------") print("---------------------------") print("answers: ", end="") for answer in answers: print(answer, end=" ") print() print("guesses: ", end="") for guess in guesses: print(guess, end=" ") print() score = int(score / len(questions) * 100) print(f"Your score is: {score}%")

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    class Car: def drive(self): print("This car is driving") class Camaro(Car): def drive(self): print("This Camaro is fast asf") class Mustang(Car): pass camaro = Camaro() mustang = Mustang() camaro.drive() mustang.drive()

  • @Monsta1291
    @Monsta1291 3 місяці тому

  • @Monsta1291
    @Monsta1291 3 місяці тому

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    # when a child class having multiple parent classes class Prey: def flee(self): print("This animal is fleeing") class Predator: def hunt(self): print("This animal is hunting") class Rabbit(Prey): pass class Hawk(Predator): pass class Fish(Prey, Predator): pass rabbit = Rabbit() hawk = Hawk() fish = Fish() # rabbit.flee() # hawk.hunt() fish.flee() fish.hunt()

  • @yousef.ls3
    @yousef.ls3 3 місяці тому

    🎉🎉🎉

  • @Monsta1291
    @Monsta1291 3 місяці тому

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    # multi-level inheritance = when a child class inherits from another child class class Car: working = True class Chevy(Car): def drive(self): print("This car is driving") class Corvette(Chevy): def race(self): print("This corvette is fast") corvette = Corvette() print(corvette.working) corvette.drive() corvette.race()

  • @Monsta1291
    @Monsta1291 3 місяці тому

    beautiful explanation!

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    # Inheritance allows us to define a class that inherits all the methods and properties from another class class Vehicle: works = True def move(self): print("This vehicle is moving") def stop(self): print("This vehicle is stopping") class Car(Vehicle): def drive(self): print("This car is driving") class Submarine(Vehicle): def sink(self): print("This submarine is sinking") class Plane(Vehicle): def fly(self): print("This plane is flying") car = Car() submarine = Submarine() plane = Plane() print(submarine.works) car.move() plane.stop() car.drive() plane.fly() submarine.sink()

  • @Monsta1291
    @Monsta1291 3 місяці тому

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    # POOP = Python object-oriented programming # Each object can have its own set of methods and attributes from car import Car car1 = Car("Chevy", "Corvette", 2019, "Black") car2 = Car("Chevy", "Camaro", 2014, "Red") car3 = Car("Wooden", "sofa", 2020, "purple") print(car3.make) print(car3.model) print(car3.year) print(car3.color) car3.drift() car3.drive() car2.wheels = 2 print(car3.wheels) class Car: wheels = 4 # class variable def __init__(self, make, model, year, color): self.make = make # instance variables self.model = model # instance variables self.year = year # instance variables self.color = color # instance variables def drift(self): print("This "+self.model+" is drifting :D") def drive(self): print("This "+self.model+" is driving :D") class motorcycle: pass

  • @Monsta1291
    @Monsta1291 3 місяці тому

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    # hi, please like and subscribe. It would mean a lot :D import random options = ("rock", "paper", "scissors") running = True while running: player = None computer = random.choice(options) while player not in options: player = input("Enter a proper choice pls (rock, paper, or scissors): ") print(f"Player: {player}") print(f"Computer: {computer}") if player == computer: print("It's a tie") elif player == "rock" and computer == "scissors": print("You win!") elif player == "paper" and computer == "rock": print("You win!") elif player == "scissors" and computer == "paper": print("You win!") else: print("You lose!") if not input("Do you want to play again? (y/n): ").lower() == "y": running = False print("Thanks for playing :D ") # if player == computer: # print("computer: ", computer) # print("player: ", player) # print("Tie") # elif player == "rock": # if computer == "paper": # print("computer: ", computer) # print("player: ", player) # print("You Lose!")

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    # C:\\Users\\monst\\PycharmProjects\\pythonProject1\\text.txt # C:\\Users\\monst\\PycharmProjects\\pythonProject1\\Tutorials\\1.txt import os source = "C:\\Users\\monst\\PycharmProjects\\pythonProject1\\Tutorials\\dir" destination = "C:\\Users\\monst\\PycharmProjects\\pythonProject1\\dir2" try: if os.path.exists(destination): print("This file already exists") else: os.replace(source, destination) print(source, "was moved") except FileNotFoundError: print(source, "was not found")

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    # module = a file containing python code. May contain functions, classes, etc. # Used with modular programming, which is to separate a program into parts # import functions # import functions as f # from functions import function1, function2 # from functions import * (dangerous) help("modules") # from functions import * # # function1() # function2() def function1(): print("This is function 1 :D") def function2(): print("This is function 2 :D pls like and sub!")

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    import os import shutil path = "nonempty" try: # os.remove(path) # os.rmdir(path) shutil.rmtree(path) except FileNotFoundError: print(path, "was not found") except PermissionError: print("Access denied.. ") except OSError: print("Folder is not empty... ")

  • @Monsta1291
    @Monsta1291 3 місяці тому

    🎉🎉🎉

  • @Monsta1291
    @Monsta1291 3 місяці тому

    🎉🎉🎉

  • @Monsta1291
    @Monsta1291 3 місяці тому

    🎉🎉🎉

  • @Monsta1291
    @Monsta1291 3 місяці тому

    🎉🎉🎉

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    # copyfile() = copies contents of a file # copy() = copyfile() + permission mode + destination can be a directory # copy2() = copy() + copies metadata (file’s creation and modification times) import shutil shutil.copy2("name.txt", "name3.txt") # src, dst

  • @Monsta1291
    @Monsta1291 3 місяці тому

    ez

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    text = "hi, pls like and subscribe... pls!!!" with open('name.txt', 'a') as file: file.write(text)

  • @Monsta1291
    @Monsta1291 3 місяці тому

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    I meant full code will be posted in the comments down below 😅

  • @YousefCompSci
    @YousefCompSci 3 місяці тому

    # "C:\\Users\\monst\\OneDrive\\Desktop\\example\\text.txt" try: with open("C:\\Users\\monst\\OneDrive\\Desktop\\example\\text.txt") as file: print(file.read()) except FileNotFoundError: print("The file was not found!")