12 Beginner Python Projects - Coding Course
HTML-код
- Опубликовано: 1 окт 2024
- Improve your Python skills by following along with 12 different Python project tutorials.
🎥 Course developed by Kylie Ying. Check out her RUclips channel: / ycubed
⭐️ Course Contents ⭐️
⌨️ (1:40) 1. Madlibs
⌨️ (6:54) 2. Guess the Number (computer)
⌨️ (13:17) 3. Guess the Number (user)
⌨️ (21:14) 4. Rock Paper Scissors
⌨️ (24:25) 5. Hangman
⌨️ (35:53) 6. Tic-Tac-Toe
⌨️ (59:59) 7. Tic-Tac-Toe AI
⌨️ (1:15:53) 8. Binary Search
⌨️ (1:27:16) 9. Minesweeper
⌨️ (1:51:55) 10. Sudoku Solver
⌨️ (2:05:34) 11. Photo Manipulation in Python
⌨️ (2:31:49) 12. Markov Chain Text Composer
⭐️ Code ⭐️
💻 Madlibs / Rock Paper Scissors / Binary Search: github.com/kyi...
💻 Guess the Number: github.com/kyi...
💻 Hangman: github.com/kyi...
💻 Tic-Tac-Toe + AI: github.com/kyi...
💻 Minesweeper: github.com/kyi...
💻 Sudoku: github.com/kyi...
💻 Photo Editing in Python: github.com/kyi...
💻 Markov Chain Composer: github.com/kyi...
⭐️ More ways to connect with Kylie Ying ⭐️
Twitch KylieYing: / kylieying
Twitter @kylieyying: / kylieyying
Instagram @kylieyying: / kylieyying
Website: www.kylieying.com
⭐️ Music Credits ⭐️
Alan Walker - Fade [NCS Release]: • Video
Alan Walker - Force [NCS Release]: • Video
--
Learn to code for free and get a developer job: www.freecodeca...
Read hundreds of articles on programming: freecodecamp.o...
small tip: go to the end of each tutorial and see the final output, then try coding the whole thing by yourself. it forces you to build the thing from scratch, and when you get stuck, just rewind and see how she builds it.
Great idea ❤
I don't understand why they don't show the final output, and then start the lesson????
Very good tip
its good idea if you know how to code, but if you are beginner and just learning, then it dosnt work.
I love this
1:40 Madlibs
6:54 Guess the number(computer)
13:17 Guess the number (user)
21:14 Rock paper scissors
24:25 Hangman
35:53 Tic Tac Toe
59:59 Tic Tac Toe AI
1:15:53 Binary search
1:27:16 minesweeper
1:51:55 Sodoku solver
2:05:34 Photo manipulation
2:31:49 Markov Chain text composer
It's also in the description
Thank your for table of content, this should be pined :)
Good job , but the description mentionned that
a legend
its in the description but ok
Deep web academy
The dab in the beginning already showed that the video would be epic
😬
She's here
And your comment tells that you liked the video without watching for 1 hour
YES!
I was more thinking the whole video is ruined i was so excited but she ruined it
venturing into the trading world without the help of a professional trader and expecting profit is like turning water into wine, you would need a miracle, thats why i trade with loice martha ,her skills set is exceptional.
trading got more easier wit mrs loice martha, make huge wit this week signal, her trading strategies are top notch
Asides trading for her self and getting richer by the day, he earns more charging each respective client 20% of whatever profit generated on each trade session
how can i reach her?
wow, amazing to see other investors of mrs loice martha. I'm on my 5th trade with her,her strategy has no rivalry
Completed a few "full python courses" on youtube and was able to follow along thru the hangman project, during which I encountered a few bugs which were my fault and was able to fix, but am completely lost during the tic-tac-toe project. I have no idea what we're doing and it's moving along very quickly. Need to find a video to bridge the gap between my understanding of python and the level of understanding required to be able to re-create the tic tac toe project from scratch. Great projects tho, especially the first five. Not exactly for beginners I'd say
Same here
Look for a video that explains classes, class methods, inheritance, objects, instances, etc. These are key topics and not easy to learn at first.. but when you understand them you'll be able to create a lot of games!!
same here!!!
I almost punch on my screen when lost during the tic-tac-toe.....
The super class, enumerate, board calculate using i and j.... I need to rest, damn it.
She's an MIT student, hahaha. The pace that those courses put you through changes your perspective of "beginner".
Same here. My brain exploded the moment the TicTacToe project started xD
The level gap between the Hangman game and Tic Tac Toe is way too big. You're going from 1 to 100 real quick.
Aah so I wasn’t the only one to feel that way , felt a bit demotivated as I am a beginner and it was a bit confusing for me ..
@@roadhouse_blues8081 I wish she would first explain the loops before jamming everything in list comprehensions... if she doesnt do this, then stop calling this tutorial "12 BEGINNER Python projects" because at the end of the day, they are NOT all beginner projects
@@VS257 I know I was trying to do the programs beforehand , hoping that I would be able to do them as they are for beginner , but I was lost in tic-tac-toe, I couldn’t even understand some of the clssses and syntaxes .. I guess I need to study more 😭
Anyway I am glad I was not the only one .. I was a bit disheartened as I assumed this is something all beginners are able to do such programs except me😂
hi do u know wht software is she using?im still new n self learn hope u can
answer
@@adamzahari4844 pretty sure she is using vs code
no one:
literally no one:
free code camp: let me introduce you to a great programmer, with great content
gotta admit that
yep very true
Yeah she has helped me so much becoming a programmer learning python
She writes and writes without testing anything. This is not very helpful for new developers
Because it’s pre-recorded and it’s basically just retyping the codes.
Hater
Hahahahaha 😂 m not sure to say if its correct or wrong...
I agree with you so much about leaving bugs in the videos. The thought process and talking through a bug is so useful to new programmers. It is also a psychological boost for new programmers seeing that it is absolutely normal to hit frequent bugs.
Visit 👉 Girl Coder channel u will get superb python projects with good explanation
It is not absolutely normal at all! If you do it right, you don't introduce bugs.
That's the attitude that gave us Bill Gates and Microsoft Windows.."it's ok, we'll let the customer find the big and we can fix it later".
@@deang5622 I am talking about the videos, fixing bugs in the programs and showing them and how to fix them. I never said anything about releasing bugged software to your customers. Please download a reading comprehension program, hopefully without bugs.
@@PeterSedesse I know exactly what you are talking about . I have been writing software for 40 years.
@@deang5622 My comment was about HIS VIDEO.. not about the end product software. As a developer you are always going to have bugs you have to work through and fix.. He could have sanitized his video by editing out the mistakes he made, but letting them in and showing himself figure out the bugs is useful. NOBODY IS TALKING ABOUT RELEASING BUGGY SOFTWARE.
Miss Ying, the jump between the hangman and Tic Tac Toe is absolutely CrAzY. Is this begginer? then i better quite this insane world....
This is amazing. I'm like 4/10 on python knowledge because its so hard to learn like without a goal in mind.
Its so much more fun to learn by making useful and fun apps or games vs just "this is a string.. here why you should care"
Yessss thats deffinetly
I'm looking for people to practice coding with...
same , I am also learning python.
Somehow , I made a project that is included in this video , " Guess the number" , easy to make.
@@sgtghost141 hey kushagr read my name😁😁
@@bafana_mhlamvu me too...
If anyone is using Python 3.9 and is on the Photoshop project then a friendly note that there will be a tostring error because python no longer supports that so I would recommend using Python 3.8 for that project to work properly.
Thanks for such cool projects which include great understanding💯
I work with 3.10. Seems tic-tac-toe game error cause this
Kylie - i had learned python before but this was a really good refresher class for me. thank you for your work.
Lol, ok boomer
@@quantumjourney1 ?
Visit 👉 Girl Coder channel u will get superb python projects with good explanation
@@quantumjourney1 glad you named yourself "Shitpeas"
Godess=input("")
print(f"You know what??\
i literally fell in love\
with {Godess}")
'''______________________________________________
My input will forever be *Kylie Ying* 😍'''
Tic tac toe exploded my mind literally, i don't think it's a beginner friendly project, the use of classes and functions are overused here in this video, but the main key is to not get frustrated, go search for more project that uses the same tools here but less lines of code so you follow along and try to code along with it
Don't get FRUSTRATED, programming is all about being patient and flexible with the difficulty
Since nobody checks the description, here you go:
⭐️ Course Contents ⭐️
⌨️ (1:40) 1. Madlibs
⌨️ (6:54) 2. Guess the Number (computer)
⌨️ (13:17) 3. Guess the Number (user)
⌨️ (21:14) 4. Rock Paper Scissors
⌨️ (24:25) 5. Hangman
⌨️ (35:53) 6. Tic-Tac-Toe
⌨️ (59:59) 7. Tic-Tac-Toe AI
⌨️ (1:15:53) 8. Binary Search
⌨️ (1:27:16) 9. Minesweeper
⌨️ (1:51:55) 10. Sudoku Solver
⌨️ (2:05:34) 11. Photo Manipulation in Python
⌨️ (2:31:49) 12. Markov Chain Text Composer
You surely know what I did.. 🤣
Since nobody checks this guy's comment, here you go:
LMAO!
⭐️ Course Contents ⭐️
⌨️ (1:40) 1. Madlibs
⌨️ (6:54) 2. Guess the Number (computer)
⌨️ (13:17) 3. Guess the Number (user)
⌨️ (21:14) 4. Rock Paper Scissors
⌨️ (24:25) 5. Hangman
⌨️ (35:53) 6. Tic-Tac-Toe
⌨️ (59:59) 7. Tic-Tac-Toe AI
⌨️ (1:15:53) 8. Binary Search
⌨️ (1:27:16) 9. Minesweeper
⌨️ (1:51:55) 10. Sudoku Solver
⌨️ (2:05:34) 11. Photo Manipulation in Python
⌨️ (2:31:49) 12. Markov Chain Text Composer
I be like: "Man, this is gonna be difficult"
(The dab in the beginning)
me: "I am lovin' it"
nice.
Druv you go to my school. You are is Mrs. Deraville’s class right?
@@autoaimergaming3601 Nope.....
Same here , until I reached the Tic-tac-toe 🤪
⭐️ Course Contents ⭐️
⌨️ (1:40) 1. Madlibs
⌨️ (6:54) 2. Guess the Number (computer)
⌨️ (13:17) 3. Guess the Number (user)
⌨️ (21:14) 4. Rock Paper Scissors
⌨️ (24:25) 5. Hangman
⌨️ (35:53) 6. Tic-Tac-Toe
⌨️ (59:59) 7. Tic-Tac-Toe AI
⌨️ (1:15:53) 8. Binary Search
⌨️ (1:27:16) 9. Minesweeper
⌨️ (1:51:55) 10. Sudoku Solver
⌨️ (2:05:34) 11. Photo Manipulation in Python
⌨️ (2:31:49) 12. Markov Chain Text Composer
its in the description lol
@@sanspyer637 yeah but those who are watching on mobile can't copy it...
wow that tic tac toe game was crazy complicated compared to previous project, spike in difficulty was quite shocking, maybe try to go over it a bit slower, at least, you went from barely touching some functions to classes with multiple inheritance, several methods and and mind blowing listcomprehensions, keep in mind people watching this are mostly beginners, take it slow love, other than that i loved the video, you are awesome, keep up the good work!
@Mike JH82 if it gets confusing read on listcomprehensions, static methods and such, i hate using listcomps because they are harder to wrap your head around if you are new, and read on classes, especially inheritance, try to play it several times and comment what every part of your code does until it starts making sense, take this project slow and do some reading on code it uses, try to implement some mew feature to the game, if you can do it. You know what you are doing if not, read more, dont just blind copy. Best of luck 👍
Guys, This course is Good, But for Beginners (for newbies) this is not for them. Yea, U can learn new things but often you will feel like How?. It definitely lowers your confidence.
tic tac toe is too tough for beginners
i wanna thanks a lot to the crew of freecodecamp and Kylie for taking the time to teach python
Awesome!!
Thanks for tuning in, Keith. You're an inspiring the next generation of teachers with your thoughtful Python courses.
KEITH IS GREAT....He is my online guru for Python.....Nice to see here....
I watched your contents too they are for very basic one but not for advance
Some more beautiful soup!
Dude you too.
You are awesome
The dab , what an epic way to start the course 😂
:’)
no
Yes
More like an epic way to deter people
Yalll simps
Thanks Ying for the video, but frankly this is the typical "How to code [not] for beginners" video. Starting from the tictactoe project, I got lost after you started writing like hundreds of lines of codes and just explained for like few seconds.
The photo editor one is not working on my device. It is showing "cpngfliters' is not defined (no module) can someone please help me out , how can fix this error.
Can't belive this content is for free! This was an excellent video, thank you!! You present and explain very well
Is it totally me who she comupletely lost in that hangman video or there is anyone else too?
i believe the energy was low and she explains very quickly in that
do let me know guys?
Really good tutorial, learned a lot, just a small suggestion. After you finished the hangman project, I think its better to do the sodoku solver, minesweeper and than the Tic Tac Toe project, both sodoku and minesweeper are shorter, and she explain some logics that are the same used in tic tac toe, but in tic tac toe she doesn't explain (like how to see if the 3x3 square has all x or O, that's is the same logic in how to see if all the sodoku numbers are right, but in soduko she explained all the little details, and in tic tac toe not).
Great content keep it up ( English is not my main language, sorry if I wrote somethings wrong).
100% yes
Is anyone else really struggling to grasp the concepts in the tic tac toe game? I am just beginning to learn python and decided to start here, so many I am just getting ahead of myself.
hi
i'm also have some problem with tic tac toe
I think it's for high level people
for people struggling with 'from words import words' : make sure the words.py file is in the same folder as the file where you're writing the main code. afaik, it has to do with what you're importing into the main py file.
in case of the madlibs, you were importing the stories individually from the folder where they were placed and then calling the functions in the selected story.
here, since you're directly importing only a list and not calling a function, where the file is placed might cause an issue. I am an amateur, so im sure someone more enlightened than I could explain this better.
Thanks my mannnnnnn ❤️
I never knew about "f Strings" before this video... now it's the primary method I use. Great video!
no way!! Perfect timing!
Yeah same. I just finished my first programming subject and I wanted to start a project to solidify the basics amd hopefully learn more complex stuff. Winning
while(project is undone):
keep going.
#it's hard, I know. but imagine a completed python project in your hand. dude, it'll fucking emotional
:)
see ya in the side of success!
i followed every code in the 5th mini project (hangman) but it didn't work. it kept asking me to guess a letter and never return with any feedback i entered al the letters one by one and never change!!!!
i wrote the codes (before the life counter edition) .. and focused on the spaces between the lines and brackets and still didn't work..
i checked the codes from your links but i didnt copy and paste them as it will be cheating if i didn't trust my understanding to your explanation ....
damn that tic tac toe is hard man!
Keep practicing! You can do it
@@KylieYYing how do you practice? Do you read source code of already solved problems or you just do trial and error or both. Like how do you break down a single line problem statement into so much code?
I started programming very recently, watched a few youtube videos, this one is one of the worst tho in my opinion, I got excited because its about some beginner project, but she types too fast and doesn't explain things clearly enough so its easy to get lost and confused.
❤Investing in cryptocurrency is the best way of getting ahead to build wealth, investing remains a priority. The stock market has plenty of opportunities to earn a decent payouts, with the right skills and proper understanding of how the market works, I pray that anyone who reads this become successful in life..
Yes it is highly profitable, I made a good profit of $8,500 with a capital of $1600 on my last trade with her.
This is not the first time i am hearing of Mrs benjanmin Addison her exploits
in the trading world but i have no idea how to reach her❤
❤wow ,amazing to see others who trade with Mrs benjanmin Addison,i am currently on my5th trade
with her and my portfolio has increased tremendously
I invest with Mrs benjanmin Addison too, she charges a 20% commission on profit
made after every trading session which is fair compare to the effort she put in to make huge profit
@@loveth2165 Kindly reach her through telegram page
for the computer_guess part, why am i only getting the same output as the user guessing part?
i wish you would write the code in order. I'm a beginner and its hard to follow the logic of why you do certain things when you're jumping around. I hope I'm not coming off as rude, I'm just confused
Is this some kinda Asian beginner things that the rest of us don't understand?
I was doing pretty good until Tic tac toe
Can relate. MY tic tac toe doesn't even give output lol
started off interesting but by the time you get to Tic-Tac-Toe you seem to have forgotten your audience is beginner and are zooming through at a fast speed using techno babble
I am using a book to learn and get used to all the syntax and logical thinking. Then, I will come to free code camp to work on these projects. I hope to not just copy and paste code but be able to understand and do them in my own way, refer to this great programmer and see her approach when I get stuck. I used to program long ago, then I stopped and dived into Cybersecurity, later I felt like coding was really my thing, I am here to now blend the two! Wish me luck! I saved this video for later only after seeking through twice and I have a great conclusion.
Can i add these projects in my resume? Or in general projects which are in youTube can i add it?
the only thing wrong with these tutorials is that she goes a little fast and doesn't explain every little detail. I think if these are aimed towards beginners then slowly explaining each step and encountering bugs along the way instead of already having a working solution would be better. But she is a good teacher.
Hello Thank you for taking the time to do this series of videos, you are a great programmer, but need to improve your teaching skills, and this series of videos are not for beginners maybe medium level and more. just for example in the hangman game in the minute 29:05 you have
user_input = input('type something:')
print(user_input)
because you were testing the input, but then you change and explain the removing letter and continue in minute 30:45 the last part of the code is hangman() to call the function to play the game, but you didn't explain that, maybe take a pause a recap all the code people can notice the change, for me as a beginner or less, was hard to find!...
Again thanks for your time !
thanks so much I was so confused why it kept printing type something
Is my brain suppose to hurt while learning about python?
Or is it just me 👀
same hahah
It is the stupidity leaving your brain, it's good.
Just like horrible pain and bone-cracking sounds when working out, it's the weakness leaving your body.
30:00 to run the program you need to call the function. she skipped over that lol. its implicit if you've programmed before but if not just type hangman( ) at the end. keep in mind shes still half way from completing the demo.
been learning Python for a while now. While I understood everything explained in the video, there is no way I could come up with any of the logics on my own :/
video's good but so confusing for someone who has just started learning or just went through the tutorial
Thanks for the inspiring ideas for projects and simple games.
Easter Egg: You should already know, but In the video (the hangman part) you create the method 'get_valid_word()' without returning the 'word' with upper method called. I also looked in the repo and its fixed. I am following the video and sometimes comparing in the project gihub.
That tripped me up !
man .... i even "printed" the word to check if there is some problem there and it was shown in lowercase .... then saw your comment .... thanks man.
Omg I watch her videos and I got so excited to see her here
I'm excited too :P
She graduated from MIT and that too in Electronics and Physics. Wow.
Not in computer science degree where I learned to hack NASA using HTML 😂.
Just kidding, physics and electronics are quite hard I believe.
yeah, really impressive
Only because of Affirmative Action.
meanwhile I struggle to answer easy questions in leetcode
@@katemoon7476 what does affirmative action mean?
@@katemoon7476 quite a dumb statement
Why do i still find these hard as a beginner
Under Binary Search @1:18:55 and @1:23:40 , why return -1? What does that do? Does it return the last item in the list or an error? Or is -1 a common thing to return in case of an error?
if this is for beginners then i'm in trouble... lol... i thought this was going to be way easier than VBA...
The starting projects are really easy but after hangman it gets kinda hard
But keep practicing you will get better
@@zobr0s77 Its hard for me too bro
@@mr.sherlock3157 You should watch more tutorials. Tech with Tim has a great video that goes over the beginnings and more. The more would be things like the classes we saw in the Tic-Tac-Toe game
@@matthewgreen5126 Yeah I am a newbie and I am trying to get better.
You rocked it. The way you explained the use cases for each project and how to approach to implement them one at a time is very helpful.
So hard first two projects give me confidence, after that it took all from me whatever i thought i knew
Keep practicing! Beginner projects are not meant to be easy, they should still be challenging enough to learn!
@@KylieYYing Agreed, but sometimes I feel is it really what I want to do, makes me question myself if programming is for me or not, when I barely give it 2-3hr a day
@@redlock4835 bhai 3 topic solve hua . S ,R ,P ko kaise defined Krna ?
@@AbhishekSharma-rp3vx maine kiye he nhi ..woh.. sirf phla wala project kiya baki samajh nhi aaya
@@KylieYYing Could you explain the logic behind the tictactoe print_board functions more. you breezed through them
so i'm currently watching the tic tac toe part and i'm very much new to python (only been learning it for about 2 months). I'm having a very hard time following what she's explaining. Should i continue following along with the tutorial? or, should i find other resources first to get me to the point to where i will understand the code better? if anyone can recommend some resources i would greatly appreciate that
great video super easy to understand. also teacher is very cute so that helped
That dab made me sub . super impressive
Me (in theory): Wow! Great course and intro to scripting!
Me (in reality): Can't even get the SDK install or find the required libraries/modules 😭😭😭😭
I can't even get step 1 of the hangman game to work. It won't import from the other file.
after spending 40 hours of learning basic python, I am excited to get started with these projects. Afterwards, I will learn algorithms and data structure so i can move on to leet code problems.
Hey i'm doing the same
All doing the same after seeing the RUclips video from that one person.
hey, how far have you learned? i'm kinda at the position you were rn :)
40hrs ??? wow that's long
I would like to have seen some actual logic used in solving the sudoku, not a brute force. Brute force is a poor habit to get into when coding.
I'm here for the dabs
Great Presentation skills...
Keep on keeping on.
@Kylie Ying Is she even typing!! Damn! What's with that butter-smooth speed!? Her voice and the words being typed on the editor are totally in sync! Like to the point! #RESPECT! #Great video!
As much as I want to like this video, I just can't follow. I must be below beginner level. I'm at the Tic Tac Toe project and I'm completely lost. I don't understand what you're typing or why lol I'll come back later I guess.
Same. I had to look up some of the stuff she was using and it made more sense... but still, she uses those concepts on a non-beginner level... She barely explains anything at all in abstract.
It's way more like "here's how I made a tic tac toe game, figure it out yourself stupid!"
This was def not for beginners.
I know she tries to teach ppl etc, but just as a feedback, this course has the worst and most confusing logic explanation ever. Seems like no real attempt to actually explain what she’s doing.
Like what in the world does this even mean: “guess = low # could also be high b/c low = high” ??
This is so hard to follow and half the syntax used doesn't function the same way for me as it does for her. She doesn't actually explain any of the functions she uses properly either. There's too many other better tutorials out there to spend time watching this one.
There's a huge mistake in your hangman project which rendered my own version of it completely useless until i figured it out and issued a fix for it.
The mistake is on the 30th line " if user_letter in alphabet - word_letters"
this line made no sense to me until I figured out that it was meant to be "used_letters" instead of "word_letters"
and with this fix, the program should function flawlessely!
😲🕺🏻🙏🏼
Yes, thanks
I got a problem running the program whereby word_list doesn't join 'current word'?? Please can you explain
I reached tictactoe and my brain gave up. I've been studying javascript since April and I can get a lot of what you're doing but those loops are beyond my understanding.
I don’t know why she made it so complicated
Me too.
Don't worry lol I've been programming since 2016 and it took me a while to figure out the loop too lol
same man that tic tac toe game is like way complicated but i dont know whether it can be made easier or it is that difficult only
This would be great if she didn't do voiceovers, and talked as she's writing code. I felt like it goes so fast, but it might be just me
yeah, believe me, it is just you
This is an amazing tutorial thank you so much for the time you put into this.
@Kylie - I tried to duplicate the Hangman Project, and it won't run. Are there examples of the final code somewhere?
Again thank you for all the time you put into this?
How do I fix: TypeError: list indices must be integers or slices, not NoneType
This error is in tictactoe, and it's when:
def MakeMove(self, square, letter):
if self.board[square] == ' ':
self.board[square] = letter
if self.Winner(square, letter):
self.currentWinner = letter
return True
return False
The Editor that she appears to be using in this video is: Visual Studio Code. I took me a long search to resolve this, I place it here so you can get your question answered. Excellent job Kylie Ying, most grateful to you.
I was running into the same issues of the program not running but was entered exactly like the example. I am using PyCharm editor. Guess I will have to find other tutorials if I can not use Visual Studio.
Thank you so much darling...I was already giving up before I decided to come and look for this comment
Can jupyter notebook run code projects?
@@ronsullivan132 Same, same. Thx for posting. This was doing my head in. PyCharm not compatible?
This comment was life rn 😭
I love coding Recently I Focus on Python...Teaching Awesome. ..👌👌👌👌👌👌👌👌👌
I am a beginner in programming and I consider that the level is too high, I had to watch this video for more than 5 times. Thanks for teaching us!!!
Trust me, you got this. Just don't get discouraged and stop. Its difficult for everyone at first, but you'll get it if you keep practicing i promise you that. keep at it.
Yes ,it s the same for me , I think she should have said each step a little bit slowly to be understood better
I have programming experience in JavaScript, HTML, and CSS, so it was quite easy to follow. I have done most of these projects in JavaScript so I just needed to know the syntax
The rock/paper/scissors game is odd to play because it doesn't tell you what the computer "chose."
To display what it chose in the result, change the "is_win" function to:
if is_win(user, computer):
return f"The computer chose {computer}. You won!"
return f"The computer chose {computer}. You lost. Sorry!"
(1:40) 1. Madlibs
⌨ (6:54) 2. Guess the Number (computer)
⌨ (13:17) 3. Guess the Number (user)
⌨ (21:14) 4. Rock Paper Scissors
⌨ (24:25) 5. Hangman
⌨ (35:53) 6. Tic-Tac-Toe
(59:59) 7. Tic-Tac-Toe AI
(1:15:53) 8. Binary Search
(1:27:16) 9. Minesweeper
(1:51:55) 10. Sudoku Solver
(2:05:34) 11. Photo Manipulation in Python
(2:31:49) 12. Markov Chain Text Composer
I love this so far! I've been doing projects, and I noticed a small error in your final code for the Tic Tac Toe game, in player.py where you say
'\s turn. Input move (0-9): ' it should be 0-8 instead, since 9 in this case is invalid.
Yep, good catch!!
she did notice that at the end and fixed it
May I ask a question: The line of code writing
If __name__ == '__main__' What does it means? And where is the __name__ in the code?I didn't notice and it just pop out in the code
Thanks for telling everyone.
this channel is one of the best on youtube
How come your hangman code is working. Spend my whole day on the hangman code trying to figure out why it wasn't working at my end, just found out I am meant to return word.upper() in the get_valid_word function
"whats up code squad"
"immediately dabs"
alt f4
This is not for beginners this is for in the middle people
40:50 When you write complicated code, Please try to explain it, else it is very tough to understand.
I am talking about code inside, def print_board(self): function.
So for some reason I had trouble with the random number generator. It read my input as a string. So I had to change it a little bit.
guess = int(input(f'Guess a number between 1 and {x}:'))
maybe that will help someone out. Thanks for the ideas, this is already helping me figure out problems!
Bro thank you!
what is that f before the quote?
@@novianindy887 to write the variable u wanna call out in the {}. without the 'f' before the string that you wanna print out. u cant call out the variable
@@novianindy887 try this, i just wrote this, with some reference from the vid above.
import random
lowest_number = int(input("provide a number range, give a min value :"))
highest_number = int(input("provide a number range, give a max value :"))
answer = random.randint(lowest_number, highest_number)
# print(f"correct ans = {answer}")
guess = int(input(f"guess a number from {lowest_number} to {highest_number} :"))
def guess_number(guess, lowest_number, highest_number):
while (guess != answer):
if (guess < answer):
if (guess > lowest_number):
lowest_number = guess
print("go higher")
elif (guess > answer):
if (guess < highest_number):
highest_number = guess
print("go lower")
guess = int(input(f"guess again from {lowest_number} to {highest_number} :"))
if (guess == answer):
print(f"congratts, you got the number. it was {answer}")
guess_number(guess, lowest_number, highest_number)
@@joshuacheng7325 thanks mate. Which is more common to write string, the (f"string {var}") or the ("string") + var
She's a doer, not really a teacher.
And?
@@sg1894 and she teaches badly lol
true words have never been spoken
Nobody really teaches you programming. You learn it yourself
The host is amazing. Nice work! Learnt a lot of new stuff. We need a part 2. 10 intermediate Python Projects! Please.
oh hell no, she needs to get your off your tricycle and using nim with raylib as a part 2
There is big problem in hangman you wrote and I guess you forgot to fix it in the video. The word created by get_valid_word is lowercase but it letters we guess is in upper case as shown in this video! it took me hours to figure it out but to my surprise it did not cause any issue in your code. what am I missing?!
Great until 'Hangman'. But, it's a mess when she gets to 'Tic-Tac-Toe', there are a lot of easy and structured ways to write Tic-Tac-Toe using OOP in python.
I started doing the projects over on jupyter notebook and then got stuck at hangman as I have no clue about jsons or importing 'em. Just got done with getting VS code installed. Hoping to complete all of the projects & learning lots of new skills (including json file types & bunch of other things which I have no idea about). Thanks for the amazing free content freecodecamp.
Btw please can anyone give me suggestion on whether from where I shall learn python? I have only done a course called "Crash Course on Python" by Google over on Coursera.
You don't actually have to import the json file. All you need to do is copy/paste the list of words into a python file and assign it the name "words" just as she does in the video. In your python editor create a new file in the same folder as the hangman.py file and name it words.py. Open the json file and select/copy everything within the brackets [ ] and including the brackets [ ]. i.e. ["aback","abaft", .... "zoo","zoom"]. Then in your newly created words.py file type "words = " without the quotations. Then paste the list of words you copied from the json file. Now when you "from words import words" in your hangman.py file you will be able to call words from the words.py file. Hope that makes sense.
I love you for this!!!! Recently got back into coding after an over 10 year vacancy. And doing ur challenges first my way really try and make it work on ur own, that spark of pure joy is just amazing when u nail it. Then watch how u did the same task and become amazed and high on enthusiasm every time makes this into an extremely pleasant journey. Thanks for this!!!!
I read in some place if you add a "0:00 Start" on the description, RUclips will make the time stamps
computer programming is so fresh ! It makes me excited all the time because i love to crime. stay hydrated and fly like you are johny sins! 😸
how about setting up and IDE to follow these tutorials??? the most important beginner lesson wasn't included in this vid. help, please
Got to hangman in an afternoon and spent the rest of the day playing it.
Came for the projects, stayed for the dab LMAO
true
Thanks for this tutorial. I really learned and refreshed my knowledge a lot! Just keep continuing this!
The hangman was not very well explained and I could never get it to work. You seemed to have glossed over some key parts and I failed to understand much of what was going on in that exercise. Not even close to getting this one to run, I have no errors, but nothing is ever printed to the console. very confusing, poorly explained. Have to say, the further this video goes, the less I think it is for beginners, little to no explanations given, plenty of expectations that the user already understand the language very well.
idk if this is done intentionally or this girl just sucks at teaching how to code but found errors in the computer guessing game and in rock paper scissors. damn near almost made me give up on these projects entirely, as a beginner you follow instructions to learn how things are done properly, but if it doesn't work you hardly are in a position to figure out why it won't work. Super annoying but thankful I was able to figure out what went wrong in her code to make the games work.