- 20
- 339 785
Code Coach
United States
เข้าร่วมเมื่อ 23 ก.พ. 2021
Learn to code in python. This channel is targeted for all programmers wishing to immerse themselves more into their code. This channel specifically focuses on python with a mix of tutorials, live code, and code analysis.
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
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
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
Why is the switchPlayer() at the end of the def computer(board) and not behind checkTie(board) in the end?
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))
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
Great video, friend! Thank you. However, how do you add a replay option?
I need help on line 46 its giving me a syntax error for the X what do I do
great 🔥🔥🔥
thanks
Thanks!
thank you sir 🌝💗
Thanks mate for this help❤
why does my terminal say Dealer had<function revealdealerhand at 0x00000244ABB568C0> and X but my hand is normal?
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]
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.
Most simplest video on yt, Thanks a lot.
Got the output but have some indentation error 😅.
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
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.
I didn't understand the "board[inp-1]" thing in the function of playerInput.
very nice video, good explanation and well understood . Thank You
Thank you!
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.
keep going bro
it's actually beginner friendly
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
13:51
tnk u so much, it very helpful
board[inp-1]=="-" this line i can't understand
def revealDealerHand(): unindent does not match any outer indentation level :C
It sucks cuz it doesn’t have true async
wtf wrong w your voice?
Thank you so much life save!
Can someone post the code plz need it for a project in my python class ain't tryna type allthat
did u get it? pls post
your voice is attractive
Hey your discord invite link is invalid
your game logic does not include both player and dealer have 21 or player and dealer are both bust.
This was my first project, i watched a hour long tutorial to learn then i spent 20 minutes making tic tac toe
why are you whispering?
Good explanation but that voice 😂
Not cool to throw shame bro
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
Well Done!
The audio and video don't match. The video is a few seconds faster than the audio.
Nvm it was just my monitor.
so with this im finding that if you choose a spot that is already taken, it still switches currentPlayer variable and skips your turn
You can fix this by removing switchPlayer() from the while cycle and put it in the playerInput under the if statement
W
My python isn't showing the board and it Python 3.12.0
Cant run it again please help
Great tutorial
well made, thank you !
Is there an algorithm that allows the player to win randomly? However enjoyed your video and it was really helpful
I fucking hate flask
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 😆
the ace is 11 or 1