Code Coach
Code Coach
  • 20
  • 339 785
3 Beginner Python Project You Need to do
3 Beginner Python projects everyone needs to do. Hey everyone hope these projects were able to reinforce some fundamental concepts of programming. Let me know if you have any suggesting/requests for future videos!
Subscribe: th-cam.com/users/CodeCoachh
On this channel we focus on all things Python. Whether it is a project tutorial/showcase, teaching different Python concepts, or just live coding this is one of the best channels for programmers. Check out my links down below and think about supporting my content on Patreon and joining the discord👇
Links:
Patreon: www.patreon.com/codecoach
Join the discord: discord.gg/NBf2keQH
Github: github.com/watsojar
0:00 Project 1 - Number Guesser
5:03 Project 2 - Password Generator
10:06 Project 3 English to Gibberish Translator
มุมมอง: 1 766

วีดีโอ

Best Python Beginner Project in 2 Minutes
มุมมอง 1.3K2 ปีที่แล้ว
How to make a digital clock in python a beginners tutorial. Watch this video to learn how to make a digital clock in python quickly and easily. If you guys enjoyed consider hitting the link below. Subscribe: th-cam.com/users/CodeCoachh On this channel we focus on all things Python. Whether it is a project tutorial/showcase, teaching different Python concepts, or just live coding this is one of ...
The Best Way to Learn to Code (easiest)
มุมมอง 4032 ปีที่แล้ว
The best and easiest way to learn python. This video will go over the roadmap you should take when learning to program. Follow the steps in the video to be set off on a great path to becoming an expert programmer! Subscribe: th-cam.com/users/CodeCoachh Angela Yu's 100 Day's of Python course: www.udemy.com/course/100-days-of-code/ On this channel we focus on all things Python. Whether it is a pr...
Longest Substring with At Most K Distinct Characters | Python Algorithm Tutorial
มุมมอง 4552 ปีที่แล้ว
Longest Substring with At Most K Distinct Characters python algorithm tutorial. Hey everyone, in today's video we go over a google interview question the K longest substring. We go over the sliding window approach to solving this problem in the most efficient way. On this channel we focus on all things Python. Whether it is a project tutorial/showcase, teaching different Python concepts, or jus...
How to Create a TIC TAC TOE Bot in Python | Beginner Tutorial (Minimax Algorithm) | Part 2
มุมมอง 6K2 ปีที่แล้ว
Learn how to create a Tic Tac Toe bot in python. Hey everybody welcome to part 2 of this python series. Today we implement the minimax algorithm for tic tac toe in just a short amount of code. The link the the full project is below. Let me know what you guys think of the video and any other future suggestions you might have! Completed file: github.com/watsojar/tictactoe Article I talked about i...
How to create a TIC TAC TOE Bot in Python | Beginner Friendly Tutorial (Minimax Algorithm) | Part 1
มุมมอง 10K2 ปีที่แล้ว
Learn how to create a Tic Tac Toe bot in python. Hey everyone welcome to another video. In this first part to a 2 part series on creating this bot we create the basic tic tac toe game. Linked below is a copy of the complete file I make in this video if you just want to hop straight into the second video. checkWin function: def checkWin(): if (board[1] board[2] and board[1] board[3] and board[1]...
How to Make a Binary Search Tree (BST) | Java Tutorial
มุมมอง 2.3K2 ปีที่แล้ว
Learn how to code a binary search tree (BST) in java. Hey everybody in today's video we fully implement a BST in java with all the methods required for a fully functional BST. We cover searching, traversing, inserting, and deleting nodes in a BST. Hope you enjoy! On this channel we focus on all things Python. Whether it is a project tutorial/showcase, teaching different Python concepts, or just...
Create Blackjack in Python | Beginner Friendly Tutorial
มุมมอง 65K3 ปีที่แล้ว
Hey everyone, in today's video we create blackjack in python. This is a beginner friendly tutorial where I walk you through every line of code you need to create blackjack. Creating this program reinforces all the beginner programming concepts (variables, loops, functions, print, input, etc.) and is incredibly simple to code. On this channel we focus on all things Python. Whether it is a projec...
Understand Lambda Functions in Under 4 Minutes | Python Tutorial
มุมมอง 1193 ปีที่แล้ว
Hey everyone, in today's video I try to teach the fundamentals of lambda (anonymous) functions in the shortest amount of time possible. Let me know what you guys think! On this channel we focus on all things Python. Whether it is a project tutorial/showcase, teaching different Python concepts, or just live coding this is one of the best channels for programmers. Check out my links down below 👇 ...
Everything I've Learned in my First Year of Coding
มุมมอง 2763 ปีที่แล้ว
Hey everyone, I am uploading this video about a month after I recorded it. Sorry for the delay in uploads, I just graduated from my high school so this month has been a little crazy. Because of this, it took me a little while to get around to edit the video. The courses I have taken/am taking: Web dev: www.udemy.com/share/101qYwAEASdlZUQnkD/ Python: www.udemy.com/share/103J8CAEASdlZUQnkD/ Java:...
My First Game | Pygame Project Showcase
มุมมอง 6923 ปีที่แล้ว
My First Game | Pygame Project Showcase
Learn Pygame with Me Part 1 | A Tutorial for Beginners
มุมมอง 3193 ปีที่แล้ว
Learn Pygame with Me Part 1 | A Tutorial for Beginners
Learn the basics of Turtle in Less Than 6 Minutes | Python Beginner Tutorial
มุมมอง 2323 ปีที่แล้ว
Learn the basics of Turtle in Less Than 6 Minutes | Python Beginner Tutorial
Python TIC TAC TOE Tutorial | Beginner Friendly Tutorial
มุมมอง 212K3 ปีที่แล้ว
Python TIC TAC TOE Tutorial | Beginner Friendly Tutorial
Learn List Comprehension in Less than 8 Minutes | Python Tutorial
มุมมอง 2833 ปีที่แล้ว
Learn List Comprehension in Less than 8 Minutes | Python Tutorial

ความคิดเห็น

  • @larryhatcher8927
    @larryhatcher8927 17 วันที่ผ่านมา

    This is a great learning tool. One thing we might be able to improve upon is the computer play. I was able to get it to show both "X" wins and "O" wins on the same board. It should shut down immediately after the X move

  • @DiegoSabajo-v6f
    @DiegoSabajo-v6f หลายเดือนก่อน

    Why is the switchPlayer() at the end of the def computer(board) and not behind checkTie(board) in the end?

  • @Crismolti
    @Crismolti หลายเดือนก่อน

    I am sorry, maybe i dont understand something, but i cant fine double in your cod. For example we have 8 and 2.In a real game a lot of playerы will double and not just hit. I am really bad in a python and that is why i can do it myself. I am not from english speakers countries. Sorry for my English))

  • @karimeissa2089
    @karimeissa2089 2 หลายเดือนก่อน

    in the function userInput you should call it again recursively in the else statement like this: def playerInput(board): inp = int(input("Select a spot 1-9: ")) if board[inp-1] == "-": board[inp-1] = currentPlayer else: print("Oops player is already at that spot.") playerInput(board) Because if the user chooses a number which was already chosen it will display the message and then go to the next player, but we want the same user to try again in another spot, not switch players after an error

  • @RubiBrintz
    @RubiBrintz 2 หลายเดือนก่อน

    Great video, friend! Thank you. However, how do you add a replay option?

  • @sethbanakos4838
    @sethbanakos4838 3 หลายเดือนก่อน

    I need help on line 46 its giving me a syntax error for the X what do I do

  • @VemulaDileep
    @VemulaDileep 3 หลายเดือนก่อน

    great 🔥🔥🔥

  • @ankitamarjit8909
    @ankitamarjit8909 3 หลายเดือนก่อน

    thanks

  • @Pav711
    @Pav711 4 หลายเดือนก่อน

    Thanks!

  • @jane_rosso
    @jane_rosso 4 หลายเดือนก่อน

    thank you sir 🌝💗

  • @Mr.Phantom001
    @Mr.Phantom001 4 หลายเดือนก่อน

    Thanks mate for this help❤

  • @oogabooga-j8r
    @oogabooga-j8r 5 หลายเดือนก่อน

    why does my terminal say Dealer had<function revealdealerhand at 0x00000244ABB568C0> and X but my hand is normal?

    • @oogabooga-j8r
      @oogabooga-j8r 5 หลายเดือนก่อน

      this is the code that i use : def revealdealerhand(): if len(dealerhand) == 2: return dealerhand [0] elif len(dealerhand) > 2: return dealerhand [0], dealerhand[1]

  • @Piktro
    @Piktro 5 หลายเดือนก่อน

    I'm brand new to Python, haven't touched any code in 10+ years until 2 weeks ago, but wouldn't it be easier to check certain win conditions during each turn, or at least print the player and dealer hands at the end outside of the if statements, to avoid repeating all that code and all those print statements? For example, immediately after dealing: If player and dealer blackjack, print push. Elif player blackjack, print player wins. Elif dealer blackjack, print dealer wins. In player turn: If player busts, print dealer wins In dealer turn: If dealer busts, print player wins. Then after a player "stand", just compare player vs dealer totals. If player > dealer, print player wins. Elif dealer > player, print dealer wins. Even if we keep the code how it is, wouldn't something like the following be much easier to read? print(f"Player has {total(player_hand)}. Dealer has {total(dealer_hand)}.") if total(player_hand) == 21: print(f"Blackjack, you win!") elif total(dealer_hand) == 21: print(f"Blackjack, dealer wins!") elif total(player_hand) > 21: print(f"Player bust! Dealer wins.") elif total(dealer_hand) > 21: print(f"Dealer bust! Player wins.") elif 21 - total(dealer_hand) < 21 - total(player_hand): print(f"You win!") elif 21 - total(dealer_hand) > 21 - total(player_hand): print(f"Dealer wins!") I've just watched a bunch of tutorials and things like "don't repeat yourself" were hammered into my brain.

  • @soumitakar4373
    @soumitakar4373 6 หลายเดือนก่อน

    Most simplest video on yt, Thanks a lot.

  • @aruneshrk7520
    @aruneshrk7520 6 หลายเดือนก่อน

    Got the output but have some indentation error 😅.

  • @pavelpolosin2217
    @pavelpolosin2217 6 หลายเดือนก่อน

    I don't understand. How is possible to equal board[inp - 1] = current_player. But current_player variable is a string type, and inp - integer

    • @Aqua001_
      @Aqua001_ 4 หลายเดือนก่อน

      8:28 That [inp-1] is to find the index(Since the player input starts at 1 and the board index starts at 0 we sub the 1) after that we assign the player input to the board accourding to the index. Therefore it is Board[index] = playerInp.

  • @SlytherinLassie
    @SlytherinLassie 6 หลายเดือนก่อน

    I didn't understand the "board[inp-1]" thing in the function of playerInput.

  • @BoddepallliKeshavaKumar-qx6hp
    @BoddepallliKeshavaKumar-qx6hp 7 หลายเดือนก่อน

    very nice video, good explanation and well understood . Thank You

  • @i11usion
    @i11usion 7 หลายเดือนก่อน

    Thank you!

  • @skylorhamilton9151
    @skylorhamilton9151 7 หลายเดือนก่อน

    Oddly I'm getting "oops player is already in that spot when entering 1. 2-9 is cool though. There's a dash in the 1 position in the code just like 2-9. The computer is able to use position 1 though.

  • @varun-k2i
    @varun-k2i 7 หลายเดือนก่อน

    keep going bro

  • @zihanmubarak1890
    @zihanmubarak1890 7 หลายเดือนก่อน

    it's actually beginner friendly

  • @iwatchanime9789
    @iwatchanime9789 7 หลายเดือนก่อน

    HELP great vid i copied it perfectly but im jw how do i get in the terminal mine isnt like urs also i cant run the program it says error "cant find __main__" i put this in a new file im 1 week into coding so i probably didnt do something very basic

  • @Superr-x2v
    @Superr-x2v 7 หลายเดือนก่อน

    13:51

  • @thanapalthanapal9838
    @thanapalthanapal9838 7 หลายเดือนก่อน

    tnk u so much, it very helpful

  • @thanapalthanapal9838
    @thanapalthanapal9838 7 หลายเดือนก่อน

    board[inp-1]=="-" this line i can't understand

  • @TortoiseEnjoyer
    @TortoiseEnjoyer 8 หลายเดือนก่อน

    def revealDealerHand(): unindent does not match any outer indentation level :C

  • @ChorizoConHuevosEnTuBoca
    @ChorizoConHuevosEnTuBoca 8 หลายเดือนก่อน

    It sucks cuz it doesn’t have true async

  • @katana6533
    @katana6533 8 หลายเดือนก่อน

    wtf wrong w your voice?

  • @samatamotors2299
    @samatamotors2299 8 หลายเดือนก่อน

    Thank you so much life save!

  • @the_great_unknown1
    @the_great_unknown1 9 หลายเดือนก่อน

    Can someone post the code plz need it for a project in my python class ain't tryna type allthat

    • @rommepomme13
      @rommepomme13 7 หลายเดือนก่อน

      did u get it? pls post

  • @Misao.
    @Misao. 9 หลายเดือนก่อน

    your voice is attractive

  • @Das_08
    @Das_08 9 หลายเดือนก่อน

    Hey your discord invite link is invalid

  • @gedtoon6451
    @gedtoon6451 10 หลายเดือนก่อน

    your game logic does not include both player and dealer have 21 or player and dealer are both bust.

  • @jammin1336
    @jammin1336 10 หลายเดือนก่อน

    This was my first project, i watched a hour long tutorial to learn then i spent 20 minutes making tic tac toe

  • @Gemini_mind
    @Gemini_mind 10 หลายเดือนก่อน

    why are you whispering?

  • @jonathanhernandez5917
    @jonathanhernandez5917 10 หลายเดือนก่อน

    Good explanation but that voice 😂

    • @jbx6
      @jbx6 9 หลายเดือนก่อน

      Not cool to throw shame bro

  • @HenryBancroft
    @HenryBancroft 11 หลายเดือนก่อน

    Nice video thank you , only had to change it on playerInput , because if there was a "oops blablabla.." it would switch to the next player , so you can fill the rest of the grid with only O or only X if you want : def playerInput(board): while True: user_input = int(input("Enter a number 1-9: ")) if user_input >= 1 and user_input <=9 and board[user_input-1] == "-": board[user_input-1] = currentPlayer break else: print("Oops this place is already taken. Please pick a new numbers !") continue

  • @a7aim
    @a7aim 11 หลายเดือนก่อน

    Well Done!

  • @StraightAsPodcast
    @StraightAsPodcast 11 หลายเดือนก่อน

    The audio and video don't match. The video is a few seconds faster than the audio.

    • @StraightAsPodcast
      @StraightAsPodcast 11 หลายเดือนก่อน

      Nvm it was just my monitor.

  • @kodama7132
    @kodama7132 11 หลายเดือนก่อน

    so with this im finding that if you choose a spot that is already taken, it still switches currentPlayer variable and skips your turn

    • @Marci.K
      @Marci.K 9 หลายเดือนก่อน

      You can fix this by removing switchPlayer() from the while cycle and put it in the playerInput under the if statement

  • @shyammohan-dd4oc
    @shyammohan-dd4oc 11 หลายเดือนก่อน

    W

  • @omatamaneenyanga1586
    @omatamaneenyanga1586 11 หลายเดือนก่อน

    My python isn't showing the board and it Python 3.12.0

  • @sunitsawant885
    @sunitsawant885 11 หลายเดือนก่อน

    Cant run it again please help

  • @aaddaarr
    @aaddaarr 11 หลายเดือนก่อน

    Great tutorial

  • @frankstenner5377
    @frankstenner5377 ปีที่แล้ว

    well made, thank you !

  • @cartoonmultiverse906
    @cartoonmultiverse906 ปีที่แล้ว

    Is there an algorithm that allows the player to win randomly? However enjoyed your video and it was really helpful

  • @Frenk33
    @Frenk33 ปีที่แล้ว

    I fucking hate flask

  • @PeppyHannah
    @PeppyHannah ปีที่แล้ว

    This was really fun to do, thank you so much! Do you think you could possibly do some Python tutorials for complete beginners? The way you teach and explain what you're doing is the best and would love to see it in Python tutorials 😆

  • @Jammzz_balisong
    @Jammzz_balisong ปีที่แล้ว

    the ace is 11 or 1