I honestly think this guy has being the best teacher of phython I have seen so far. He explains and shows how everything works easily.. Big thumbs up mate
Now this is what all programming lessons should be! Not hello world or explaining what class is etc etc. Just SHOW and THEN nest explanations in the lesson. Great stuff!
indeed, 1 year in guy here and i can say you learn so much more just interacting/debugging your code and truly seeing how the languages variables and functions become constituents of other parts, gluing the script together.. :)
To be sincere this is the only python instructor that has taught me alot In a very short while, I've been battling the switch to tech and for over 7months I couldnt grasp anything coz I'm not a geek in tech, I've been struggling to understand how all this coding ish can be applied to real problems till I stumbled on his lessons and believe u me, this is day two and I have done over 4 quizzes.... He's so straight to the point and I recommend his tutorials for any beginner in tech like me who is struggling to catch it, his tutorials has given me rhythm, just wen I was giving up on the tech journey, he. Gave me hope.... He's an awesome tutor😊
Just wanted to say that I’ve never coded anything a day in my life… until today. I recently entered a tech job and wanted to start learning methods of coding. After watching your video I was able to create my first set of mini games! Thanks for making such a clear, and easy to follow tutorial!!
Good for you mate. I am slightly more experienced with Python now after using it for few years but I still come back to watch Tim's beginner videos. Have learned a lot from this guy and would support him anyway I can.
I just started my coding journey this year,I have seen lots of videos but this one right here got me thinking of coding every now and then because of how well the projects are explained,detailed and run through. Thank you so much,you just handed me a breathing device on my coding journey,I know I’ll be great at it soon.
Maybe Tim is the best Python teacher I have ever seen on the RUclips. There are a lots of Python teachers on the RUclips but most of them complexifies codes it becomes difficult and dull to understand. Unlike them Tim writes codes as he speak in plain English which is easy to understand. I like it bro.
the 'choose your own adventure' exercise was so fun I just spent 2 hours writing a story, at the end you play 'rock paper scissors' with the final boss lol
Tim, yesterday I spent 6 hours watching some Phyton tutorial videos on the different channels and didn't understand anything. After reviewing your video (hands-on work) I finally can start to write my simple codes.
I'm an experienced C/C++ programmer, and decided to start learning python for a personal project related to robotics. That was a really great video to help me speed run through the process of picking up python. Thanks so much tim!
@@zen-wl7dk I'd suggest picking up a book teaching C++ from the absolute zero and then working your way up by implementing various algorithms and data structures (assuming you know some) you implemented in other languages. Then you can start a project in C++ from there.
It was getting boring to continuously study Python theory, thank you so much for these. This will help me get back to the theory with much more interest
This project course is great for beginners, it teaches you Python in a very exciting manner. Wrote my first program with the help of this video. Thank you so much Tim !!!
@@2pingu937 these tutorials are for People o cant think of anything, people with no creativity like me. The whole objective of these vídeos is to give an idea of what People in these levels of knowledge can or cant do, its like going in a lucid dream but cant do anything because you cant think on something
Hey man I am going through lots of Python basics on youtube, everyone seems like same old-school way of explanation . But the way you explained is the most beginner friendly with simple projects that adds real value for the time I've invested, such a simple but supper effective way of teaching. Thanks for your awesome content :0
Just added three more elif statements that satisfies the draws. Than added a variable "total_draws" and set it to += 1 each time a draw occurred. Lastly, I added a print statement at the bottom to display the number of draws that occurred.
Very cool Video. I'm a beginner and I found all this very easy to understand: at the Rock papers scissors game the Draw option was missing so I just added that : elif user_input == "rock" and CPU_pick == "rock": print("you picked the same, let's do this again") elif user_input == "paper" and CPU_pick == "paper": print("you picked the same, let's do this again") elif user_input == "scissors" and CPU_pick == "scissors": print("you picked the same, let's do this again") and now it seems to work. thank you again !! Great video !
I think In Rock Paper Scissors project when user_input and computer_inpute is same then the code declare the computer_wins but actually it's a draw .......... By the way , Your tutorials are so clear and easy to follow , even for a beginner like me .Your passion for coding really shines through in every video , and I always feel inspired to learn more after watching them .Thank you so much for sharing your knowledge and expertise with the world.❤️
You can use this as an opportunity to actually count the draws. I added this piece of code if user_input == computer_pick: print("Its a draw!") draws += 1 This counts the draws for me. (Variables "user input" and "computer_pick" are my own variable names. substitute your variable names for user input and computer guess to get it to work)
@@yb_bakery i typed elif user_input = rock and computer_input = rock : print ("Draw") 😂😂,,so as for scissor and paper ,.. after finishing i came to read the comment and saw this ,.. 🤣🤣 I need to work more smarter !
I just want to say, this has been great, I did get lost on step 2 and I had to go back and fourth in the video to see the whole code. If you ever make this again if at all possible please show the whole code as you go through the instruction. What ever you choose to do this was truly great, thank you!
I watched this because coding has felt more like a chore than fun recently, I had fun following along and trying to add my own tweaks. I think it's funny how the same thing happened to both of us when we first tried the number guessing game in the while loop(I mean with the numbers)
in the rock paper scissor game i tried coding a "draw" system by myself without any help and it worked! this is my first time coding and i'm having a lot of fun thanks to you.
Thank you so much man!! This is my first week using python and you are helping me so much. I also added a "tie" to rock paper and scissors in case the computer and the user pick the same one^_^
Thanks for this video it helped me a lot to try my current level! Also I change the the first one in to simple math quizz: import random as ran def welcoming(): print("Welcome the Quizz!") Playing = input("would you like to play the Quizz?: ") if Playing.lower() != "yes": quit() print("Let's play the Quizz!")
def questions(): correct = 0 wrong = 0 leave = True while leave == True: x = ran.randint(1 , 100) y = ran.randint(1 , 100) Q = x + y print(f"what is {x} + {y}") A = int(input("Answer: ")) if A == Q: correct += 1 print("correct!") else: wrong += 1 print("wrong!") total_q = wrong + correct print(f"{total_q} Questions asked! ") leave = input("Would you like to see the results?: ") if leave == "no": leave = True else: leave = False if correct == 0: print("%100 Wrong!!") quit() elif wrong == 0: print("%100 Correct!!") quit()
p_coorect = correct / total_q p_wrong = wrong / total_q print(f"You got {correct} out of {total_q} ") print(f"you made {wrong} wrong answers out of {total_q}") print(f"{p_coorect * 100}% True {p_wrong * 100}% False") if p_wrong > 0.5: print("Failed!") quit() elif p_coorect > 0.5: print("Passed!") quit() elif p_wrong == p_coorect: print("Both answers are equal!") welcoming() questions()
@@andylopez8942 put it as an elif statement right after the last elif statement. so: elif user_input == computer_pick: print("Draw!") make sure to put it in the while loop
after working with javascript for years, this video was my introduction to python. wow this is so user-friendly and intuitive! thanks for these basic projects buddy!
Great tutorial, I really enjoyed it!!! I suggest in the Rock, Paper, Scissors game to add another "elif", in case the game comes to a draw. draw = 0 if user_input == cpu_pick: print('Draw!') draw += 1 continue
i am a complete beginner at python and before I watched how you did it i made this code for the quiz game. I copied and pasted your code into vsc just to see how the game should function and I made this: print('Welcome to the quiz games!') start = input('Would you like to start the game? ') score = 0 if start == 'yes': print("Great! Let's get started") else: exit() cpu = input('What does CPU stand for? ') if cpu == 'central processing unit': print('Correct!') score += 1 else: print('Incorrect.') gpu = input('What does GPU stand for? ') if gpu == 'graphics processing unit': print('Correct!') score += 1 else: print('Incorrect.') ram = input('What does RAM stand for? ') if ram == 'random access memory': print('Correct!') score += 1 else: print('Incorrect.') psu = input('What does PSU stand for? ') if psu == 'power supply unit': print('Correct!') score += 1 else: print('Incorrect.') print(f'You ended up with a score of {score} Congrats!') If anyone has any feedback that would be great!! thank you!!!!!!!!
Thank you for this. Though, I learnt python theoretically for my classes, I haven't been using it much and I'm losing the skills. This has helped me.... As a plus, I created the number guessing game to only take an initial guess and derive the random number using bisection method!
Literally, i didn't know how to programme python and i have no idea; how to achieve my dream. But, you were teach me how to use python and how to achieve my dream. Thank you so much for this great tutorial!!!!!
For those who are struggling to learn Python, like I did, here is a pro tip: avoid long complicated tutorials you see online. You need to walk before you can run. Start with very basic Books. Once you get them right, learning everything else becomes much easier. Edit: For those asking about the books, the best basic one is Javascript In Less than 50 Pages. It`s about Javascript but it is the fastest to learn the conceps that will be useful in any programming language. Second I would recommend A Smarter Way to Learn Python. Your knowledge will transform.
hey i just wanted to say thank you for this. i have probably $300-$400 in books i ofc legally obtained and had been reading through and while some of them will be great once i get the basics down, i was having a hard time getting the basics to really stick in my head but the second book you mentioned really helped a lot. thank you for the recommendation and keeping me motivated
This is just your learning style. You must prefer reading to seeing or watching. But also because ive seen your comment and same one under it on more than video, it seems you might be a spam bot anyway to sell books.
I'm trying to wrap my head around the python for around two weeks now. was able to understand the separate blocks, but it was problem for me to be connecting it (if u don't know the rules it's hard to be just trying noticing patterns) and this helped so much. Made all the games with u and feel that I'm much better in understanding this logic! thank you!
been watching how to code in python for awhile now and I felt that I just could not wrap my head around it. But doing these little projects really just showed me that yes I can do it and I have been learning even if it felt like nothing was getting stuck in my brain! Got me really excited about coding, Thank you!
Great tutorial. I'm taking a python class to finish my degree in networking and cybersecurity (2 degrees an a 2yr prog), and this instruction is more 9j point than what I'm learning 8j my class. Thank you.
Hey Tim, great video and excellent for beginners! I wanted to add that for Rock, Paper, Scissors, there's a slightly more complex (for beginners), but cleaner way to do this (if it hasn't been posted yet) by using modulo arithmetic. Because RPS is a cyclical game, (0 beats 1, 1 beats 2, 2 beats 0), we can use a bit of mod magic ( % ). Some pseudocode below: If the player choice is equal to the computer choice Declare a Draw Else if the ( player choice + 1) % 3 is equal to the (computer choice % 3) Declare computer wins Else Declare the player wins I know modulo is a bit more advanced topic, but I love using it in situations like this because it removes the need for large if statement chains. This also means if we were to say, want to play "Rock, Paper, Scissors, Lizard, Spock" from Big Bang Theory, it'd be a much simpler modification by simply changing it all to % 5 and extending the choices.
Just wanted to say you have an awesome channel! Instead of wasting my time and/or copying code I wanted to get back into programming really badly to scratch that itch (front-end development ended up boring the crap out of me with HTML/CSS, and don't even get me started on JavaScript). But the way you explained things so simply and thoughtfully was really something and got me pretty excited! Keep up the good work, Tim! :D
Watching this with my 8yr old son so we can build a mini-game to go along with this birthday party invite. We're going to try and have a code camp party where everyone get's to make their own mini-games. Great tutorial! :)
Thanks for sharing this video! I'm going to go over this video again and do it myself as I listen. I'm in my 50's and I've never really been into computers, much less programming until recently. it takes me longer to understand than it would have 30 years ago but your video is a big help! I'm just getting into this for fun not for a career, but I'm really enjoying it and you make it fun and easy to understand. I look forward to seeing more of your videos. 🤠👋>> 🤓👍
The way you explain things is so helpful! The pace is perfect for me as well. I was able to pick up right where I left off about a year ago, finish each project on my own after watching the first couple minutes, and even add some of my own customizations (maximum guesses, extra variables, delays, etc). Thank you Tim!
I'm not sure what I'm more surprised about, that (A): you forgot there could be a tie in rock/paper/scissors or (B): that you ran it 4 times and didn't get a tie to remind you! In a way it was a good think, I had to figure out how to add the tie conditions myself, which was good practice! Love the videos!
The information was excellent. Please create more of these "small projects," as they are quite beneficial in terms of confidence building. I appreciate everything you've done so far. Thanks a lot @Tim
I am learning python I am beginner and I never Do any projects and when I start this Videos I think that in this video how you Teach us is so good and after some time being watch your video I think that projects are very easy.❤️❤️thanks brdr
Hello Tim, I've been watching your 5 Mini Projects video and I kept wonder why you kept on using "While True" construct. Then I realized that this is the Do/While equivalent in other languages. In this way you are making sure that the code enters the loop at least once no matter what, and then the check for true or false occurs inside the loop. I'm new at python. Really, I'm new to them all. But I did have some familiarity with the others like 'C', 'Pascal' and 'C++.' For the first time, I am actually sitting down and learning what I've put off for nearly 45+ years, now that I'm retired.
This is so much fun! I paused the video to type this comment lol. In the third project I noticed that sometimes the computer's pick and mine are the same and the computer wins, so I added 3 elif to print that no one won and try again, in case it happens again and we both pick the same thing. That felt great that I noticed a problem and tried to fix it. So thank you!
Thanks for the great projects, followed along and wrote them at the same time, sometimes pausing for ages to try and do it before you said anything. Made some pointlessly more complicated or more sleek with some practice, thoroughly enjoyed working on them. Spent multiple hours on this, trying to add more things to it, adding in a lot of "print()" to add blank lines to the output to make it easier to read and more digestible as well as commenting all over my code so the me in 'x_time_period' can still figure out what I've written.
hey myan ! honestly i was in search of this kind of video from last 12 months , but literally i had found nothing similar what i think so i was confusing wheather to continue learning programming language or not but you gave me the hope and full confident . Literally myan i was looking videos for last 12 months but i have never gained any-thing though i learned some of the basic but i don't know where to utilized my learned basic butttt when i watched your video than i came to know that i have learned lots of things and now-onwards i will be doing similar kind of project and from easier project to tougher one . Thanks a lot myan . i can't even explain what i am feeling right now . haha i know my english is weak because it's not my major language but i tried to explain . love you bro from buttom of the heart. LOVE FROM NEPAL
I actually used the password manager as my first project a while ago before even finding this video. There was a lot that i added like features that your project doesnt have but its cool to see the similarities between the two. These are great beginner projects!!
Great videos. I noticed that on the Scissors, Paper Rock, there was no option for a draw, but that was an easy fix by adding another elif statement for the draw and then adding it as an option to count the number of draws by adding another print statement at the bottom
I don't want to just provide the answer as practice will help build and reinforce the knowledge but here is an example (Think of x as user_input and y as computer_pick in terms of the Rock, Paper, Scissors game): x = 5 y = 5 if x > y: print("You Win!") elif x < y: print("You Lose!") elif x == y print("You Draw") This works as an elif statement checks each statement entered (In this case x == y) to check if it returns a Boolean value of True. Remember, if you add additional statements with the (And, Or, or Not Logical Operators) they must all return a Boolean value of True in order to execute the print() function. In the case of a tie x and y would have to be the same which would return that Boolean value of True for this statement and execute the print() function.
What an amazing way to learn Python. Super fun, easy to follow along! I'm a complete beginner and know nothing about Python, this gave me a good understanding. Really appreciate it. Thank you so much!
for the rock paper scissors game. To include a draw feature, try the following code as part of the elif statements elif user_Input == cpu_Pick: print ("No Winner here, Go again") something like that worked a treat
Finally, a teacher who gets it!!! Nice and quick. Easy. Real world examples. Also, on the Rock Papers Scissors, I edited my program for when we picked the same and printed a "Draw".
FYI, in the number guesser, the condition to check for negative numbers will never be hit because the .isdigit() method will return False for negative numbers. The else will catch all the non-positive / non-numeric inputs.
@@cuencaguy9799 right! Here's what I came up with import random def getInput(for_next_guess): prompt = "Please indicate a integer greater than 0 representing the top of the guessing range. " if for_next_guess: prompt = "Guess a number between 1 and " + str(top_of_range) + ". " user_input = input(prompt) try: user_input = int(user_input) except ValueError: print("Value must be a number.") return getInput(for_next_guess) if not for_next_guess and user_input < 1: print("Number must be greater than 0") return getInput(False) return user_input top_of_range = getInput(False) random_number = random.randint(1, top_of_range) guess = 0 while guess != random_number: guess = getInput(True) if guess < random_number: print("too low") else: print("too high") print("Correct!")
This was an awesome learning experience! One thing I do to test my self is to pause and see if I can figure out the next part, or to add/improvise code that wasn't included in the tutorial.
54:20 I add another "elif", just in case the user and computer picked the same option. elif user_input == computer_pick: print("It's a draw.") user_wins += 1 computer_wins += 1
Loved the content😀 . Please come up with more of these "short projects" they really help building up confidence . I appreciate your efforts ☺️😌 Thankyou very much ...
After less than a week learning python your first project was great! I already knew those functions but this was a fantastic way to put it in practice, worked great. I think I'll try all these. I had one issue when I tried to skip a head and it took me a little bit to figure out why my final score wasn't working. I forgot that you had to convert an integer to a string, but thats great! this is how you really learn. The second one I messed up pretty hard going off on my own hahaha the start worked great and I thought Ive got this, no problem. I didn't have it.
Asking if user wants to play the game 6:00 Getting value from input 7:50 Checking if user typed yes 8:06 Telling user if they got the answer wrong (else) 12:42 Making sure that the program counts Capital Letters 17:04 Converting what users typed to lowercase 18:37 implementing score, adding score due to question answers 20:00 what does score +=1 menas 20:34 21:07 ending program showing user how much % he got right 22:57 *Number Guessing Game* Importing modules 25:22 using redint instead of redrange 27:38 Generating random numbers and telling players to guess the numbers 28:15
This is a great tutorial, very informative! I've been working with python for a few weeks for my college course but we haven't had much stuff to do outside of the 1-2 hours a week in class. This video has actually been great to help me understand python better and study. You did great with this one :D
Been learning Python for 3 days, never done any coding or programming ever. I did the first game while watching the video. Pauzing it whenever I needed. Noticed that after giving in the questions and answers it started skipping 1 when running it. Tried to figure out why, apparently I put some spaces before "answer" when copy-pasting the answers/ questions. It was so much fun to searching for it and even more fun to find out why and what I did wrong.
Im just starting to learn how to code myself and this video was a huge help and a ton of fun! I was a bit disappointed that the password manager didn't complete with the encryption as that would have been really cool. I will be watching lots more of your vids going forward. Lots of things to help me improve.
For Project #3- Rock, Paper, Scissors, I would suggest an additional elif statement for when the user and the computer pick the same choice: elif user_input == computer_pick: print("You tied!") (The user_wins and the computer_wins would not be influenced.)
ahh u didt it more elegant. At least someone mentioned it here otherwise I would have been shocked. I tested it before I watched Tim do it and found the problem and fixed it myself. Now I feel like a Super Programmer xD ;).
Great content! it surely has helped a lot of beginners out there. Thank you for this Tim! ps : you forgot to put the "draw" condition in Rock/Paper/Scissors game :D
10 month old comment, but here is a "draw" condition added into the code. Its also condensed into a single line for each scenario elif (user_input == "rock" and computer_pick == "rock") or (user_input == "paper" and computer_pick == "paper") or (user_input == "scissor" and computer_pick == "Scissor"): print("Draw!") continue Enjoy :)
I've watched this for a few minutes and am happy because I know by the time am done with watching this I will be doing way better than I am doing right now...such a good facilitator
💯💯Brilliant. Super glad for these tutorials Tim. A side note, the random.choice(['rock', 'paper', 'scissors'] can also generate a random choice between these three options. The choices() method returns a list with the randomly selected element from the specified sequence
It's so beneficial to follow along step by step instead of just watching and concluding "I got this." I was missing a semicolon once, didn't indent another time and put the lower() function after the wrong variable (answer.lower() = input("....)) All of which drew error messages that I never would have learned about if I thought: this is too easy a project; let me skip to the next one..
Something basic I added to the scissors game to let you know how much you won or lost by... right under the while true loop. while True: user_input = input("Type Rock/Paper/Scissors or Q to quit: ").lower() if user_input == "q": if user_wins > computer_wins: print("You won by", user_wins - computer_wins) elif user_wins == computer_wins: print("You both got equal wins at", computer_wins, "each. Play again.") else: print("You lost by", computer_wins - user_wins) break
This is awesome. The first time I ever used a computer was a choose your own adventure. Must have been around 1983 or so. I believe it was on a TRS-80. It was saved on a cassette tape.
I am still learning but I do know that doing an f string is far easier than adding multiple strings together in one line. print("You got " + str((score) + " questions correct!")) Is the same as print(f"You got {score} questions correct!") I hope this helps! Edit: I am using PyCharm Community application to code with Python. The Rock, Paper and Scissors did not work for me and I still am unsure why it doesn't. It could be the application's limitation. (I did copy the code exactly as in the video).
can you share the error message? If you copied the code (as in copied and pasted it into your program) then the error most likely be because of indentation error. When you indent, you use the Tab key, and that makes "tab spaces". If you copy the code online then most likely the indentations are normal spaces because most websites don't support tab spaces. Try replacing the indentations of the code with tab spaces and see if that worked
I do apologize for anyone asking me questions in this thread. I stopped learning and messing with Python code a month ago and really would be of little help in finding solutions.
yeah, that would've been a nice addition, as would be showing how many ties there were. maybe also counting a win after beating the opponent 2 out of 3 times.
Hi, I have a question, why when I write -25 is giving me "Please type a digit next time. " and not Please type a number greater than 0 next time." min 32:40
These mini projects are great Tim. They more helpful to strengthen my basics. But in rock paper scissors task , if user and computer picks same then computer would win.
I did the first project and learnt a lot by just doing that! It was fun, I tried adding new things in my code as well! Overall, for a beginner, this is definitely a great video to watch and learn! Thank you so much Tim! I'm going to start learning more about python, ML from your channel
Start a high paying tech career making $60k+/year with NO DEBT: coursecareers.com/a/techwithtim?course=software-dev-fundamentals
😊 this video has helped me understand things which were a pain in the neck, Thanks Tim
Sir very informative video , sir your voice is being very sharp to listen soften it by some software
@TechWithTim!
Your third project - Rock paper scissors
It forgot the scenario when the Computer tie with Human!!!
Awesome video, I'm still a beginner and this video taught me a lot! TYSM!
As a beginner, this was the first time coding felt more fun than feeling like a grind.
Same here man
same
how is coding going on with you now? are you confident yet?
@@user-bc7kd6iz1r how is coding going on with you now? are you confident yet?
@@awab1605 It's been a slow process, I would still consider myself a beginner. But I'm much more consistent than I use to be.
I honestly think this guy has being the best teacher of phython I have seen so far. He explains and shows how everything works easily.. Big thumbs up mate
i knoww
Now this is what all programming lessons should be!
Not hello world or explaining what class is etc etc. Just SHOW and THEN nest explanations in the lesson.
Great stuff!
indeed, 1 year in guy here and i can say you learn so much more just interacting/debugging your code and truly seeing how the languages variables and functions become constituents of other parts, gluing the script together.. :)
Agree. Some go on an on before you actually do anything.
@@levmikhov disagreed i learnt everything from videos like this
To be sincere this is the only python instructor that has taught me alot In a very short while, I've been battling the switch to tech and for over 7months I couldnt grasp anything coz I'm not a geek in tech, I've been struggling to understand how all this coding ish can be applied to real problems till I stumbled on his lessons and believe u me, this is day two and I have done over 4 quizzes.... He's so straight to the point and I recommend his tutorials for any beginner in tech like me who is struggling to catch it, his tutorials has given me rhythm, just wen I was giving up on the tech journey, he. Gave me hope.... He's an awesome tutor😊
Just wanted to say that I’ve never coded anything a day in my life… until today. I recently entered a tech job and wanted to start learning methods of coding. After watching your video I was able to create my first set of mini games! Thanks for making such a clear, and easy to follow tutorial!!
About to start
i thought i knew little in python but now i realized i can do most of these project...proud of myself:)
Good for you mate. I am slightly more experienced with Python now after using it for few years but I still come back to watch Tim's beginner videos. Have learned a lot from this guy and would support him anyway I can.
@@demiphotomode frl ...u have any books on Python modules
Python crash course is a way to go after that automate boring stuff
@@ikennamanagwu9646 thanks Amma check it out
Same here, I'm going to try the password manager myself
I just started my coding journey this year,I have seen lots of videos but this one right here got me thinking of coding every now and then because of how well the projects are explained,detailed and run through. Thank you so much,you just handed me a breathing device on my coding journey,I know I’ll be great at it soon.
yes same i have started coding from this year
You are a great facilitator. You're one of the only coders that is coherent, clear, and pleasant to follow. Keep it up! I really appreciate you :)
Maybe Tim is the best Python teacher I have ever seen on the RUclips. There are a lots of Python teachers on the RUclips but most of them complexifies codes it becomes difficult and dull to understand. Unlike them Tim writes codes as he speak in plain English which is easy to understand. I like it bro.
the 'choose your own adventure' exercise was so fun I just spent 2 hours writing a story, at the end you play 'rock paper scissors' with the final boss lol
post the code plse. tia
ye pls post the code @Bluemoon_wav where u play rock paper scissors with final boss
Tim, yesterday I spent 6 hours watching some Phyton tutorial videos on the different channels and didn't understand anything. After reviewing your video (hands-on work) I finally can start to write my simple codes.
I'm an experienced C/C++ programmer, and decided to start learning python for a personal project related to robotics. That was a really great video to help me speed run through the process of picking up python. Thanks so much tim!
Genuine question. Isn't python much easier?
hey i wanna learn C/C++ too someday, what learning roadmap would you suggest?
@@zen-wl7dk I'd suggest picking up a book teaching C++ from the absolute zero and then working your way up by implementing various algorithms and data structures (assuming you know some) you implemented in other languages. Then you can start a project in C++ from there.
Yeah it’s good to know c++ first! Python will be a lot easier
@@elijahpayne5435 Yea it basically is
Wow finally found something that I can absorb without having a headache.
It was getting boring to continuously study Python theory, thank you so much for these. This will help me get back to the theory with much more interest
This project course is great for beginners, it teaches you Python in a very exciting manner. Wrote my first program with the help of this video. Thank you so much Tim !!!
Writing few code as beginner and began to feel despair. After watching this, you had done something to awaken my dead hope. Thanks buddy !!
you too? i see my self like in dark place. cant get anything right!
@@ladefected4475 same bro
Keep going! Don't give up.
@@rodrigonovelo6768 yes!!!!! Keep going in the loop!!!
@@ladefected4475 that's what it is all about bro! Keep pushing yourself to the limit , we got this.
A intermediate version of this would be super cool! Thanks for the great content Tim!
Thanks for the idea!
@Syed Mohammad Sannan kivy, kivymd is used to make mobile/pc software
You should use your own creative instinct to build upon this basic code and make your own advanced version. I find this is the best form of study.
@Krishnansh Agarwal Pycharm
@@2pingu937 these tutorials are for People o cant think of anything, people with no creativity like me. The whole objective of these vídeos is to give an idea of what People in these levels of knowledge can or cant do, its like going in a lucid dream but cant do anything because you cant think on something
Hey man I am going through lots of Python basics on youtube, everyone seems like same old-school way of explanation . But the way you explained is the most beginner friendly with simple projects that adds real value for the time I've invested, such a simple but supper effective way of teaching. Thanks for your awesome content :0
It's possible that rock/paper/scissors is a tie.
Great video, I learned a lot!
Just added three more elif statements that satisfies the draws. Than added a variable "total_draws" and set it to += 1 each time a draw occurred. Lastly, I added a print statement at the bottom to display the number of draws that occurred.
if user_input == computer_pick:
print("It is a tie!")
continue
Very cool Video. I'm a beginner and I found all this very easy to understand:
at the Rock papers scissors game the Draw option was missing so I just added that :
elif user_input == "rock" and CPU_pick == "rock":
print("you picked the same, let's do this again")
elif user_input == "paper" and CPU_pick == "paper":
print("you picked the same, let's do this again")
elif user_input == "scissors" and CPU_pick == "scissors":
print("you picked the same, let's do this again")
and now it seems to work.
thank you again !! Great video !
I also found you can just have a singular elif statement where you just check if the two are the same before the else
elif user_input == computer_pick:
print("Draw")
I think In Rock Paper Scissors project when user_input and computer_inpute is same then the code declare the computer_wins but actually it's a draw ..........
By the way ,
Your tutorials are so clear and easy to follow , even for a beginner like me .Your passion for coding really shines through in every video , and I always feel inspired to learn more after watching them .Thank you so much for sharing your knowledge and expertise with the world.❤️
You can use this as an opportunity to actually count the draws. I added this piece of code
if user_input == computer_pick:
print("Its a draw!")
draws += 1
This counts the draws for me. (Variables "user input" and "computer_pick" are my own variable names. substitute your variable names for user input and computer guess to get it to work)
@@yb_bakery i typed elif user_input = rock and computer_input = rock :
print ("Draw") 😂😂,,so as for scissor and paper ,.. after finishing i came to read the comment and saw this ,.. 🤣🤣 I need to work more smarter !
i noticed this too, and the guy above has the answer for the draw question
(computer pick == user pick)
I just want to say, this has been great, I did get lost on step 2 and I had to go back and fourth in the video to see the whole code. If you ever make this again if at all possible please show the whole code as you go through the instruction. What ever you choose to do this was truly great, thank you!
I watched this because coding has felt more like a chore than fun recently, I had fun following along and trying to add my own tweaks. I think it's funny how the same thing happened to both of us when we first tried the number guessing game in the while loop(I mean with the numbers)
in the rock paper scissor game i tried coding a "draw" system by myself without any help and it worked! this is my first time coding and i'm having a lot of fun thanks to you.
Thank you so much man!! This is my first week using python and you are helping me so much. I also added a "tie" to rock paper and scissors in case the computer and the user pick the same one^_^
How's the journey so far
every programmer tutor should watch this and learn how a programmer should teach. Good job Tim
Thanks, Tim. You've brought me further in my Python journey than I expected.
You still going?
@@h_oom4114 ofc he's goin
@@quandaledingle671 I'm not, I've quit way too many times and I did it again
Thanks for this video it helped me a lot to try my current level!
Also
I change the the first one in to simple math quizz:
import random as ran
def welcoming():
print("Welcome the Quizz!")
Playing = input("would you like to play the Quizz?: ")
if Playing.lower() != "yes":
quit()
print("Let's play the Quizz!")
def questions():
correct = 0
wrong = 0
leave = True
while leave == True:
x = ran.randint(1 , 100)
y = ran.randint(1 , 100)
Q = x + y
print(f"what is {x} + {y}")
A = int(input("Answer: "))
if A == Q:
correct += 1
print("correct!")
else:
wrong += 1
print("wrong!")
total_q = wrong + correct
print(f"{total_q} Questions asked! ")
leave = input("Would you like to see the results?: ")
if leave == "no":
leave = True
else:
leave = False
if correct == 0:
print("%100 Wrong!!")
quit()
elif wrong == 0:
print("%100 Correct!!")
quit()
p_coorect = correct / total_q
p_wrong = wrong / total_q
print(f"You got {correct} out of {total_q} ")
print(f"you made {wrong} wrong answers out of {total_q}")
print(f"{p_coorect * 100}% True {p_wrong * 100}% False")
if p_wrong > 0.5:
print("Failed!")
quit()
elif p_coorect > 0.5:
print("Passed!")
quit()
elif p_wrong == p_coorect:
print("Both answers are equal!")
welcoming()
questions()
As a beginner, this was the first time coding felt more easy. lot of fun while doing quiz project.
Finally, someone who knows how to teach. Keep up the good work!
Small addition/correction to Rock, Paper, Scissors: Print "Draw!" if both picks are the same
Great Video!
just do
if user_input == computer_pick:
print("Draw!")
Where should we put that "draw" code at?
@@andylopez8942 put it as an elif statement right after the last elif statement. so:
elif user_input == computer_pick:
print("Draw!")
make sure to put it in the while loop
@@astrocity7181 I put it exactly where u said And it seems not to work correctly
@@andylopez8942 do you have a discord so u can send a screenshot
after working with javascript for years, this video was my introduction to python. wow this is so user-friendly and intuitive! thanks for these basic projects buddy!
Great tutorial, I really enjoyed it!!! I suggest in the Rock, Paper, Scissors game to add another "elif", in case the game comes to a draw.
draw = 0
if user_input == cpu_pick:
print('Draw!')
draw += 1
continue
thank you, was looking for this
Ye. It’s buggin me that he forgot such thing…
I was thinking to myself what would happen in the event of a draw. There is no logic in the code to include a draw.
@@98drez Ye same
@@98drez but if you don't add the draw event the point will go to the computer
i watched the lesson in public transport without sound and understood completely. That's how this guy teach great !
Man, you are the best tutor. I already payed for a course that I couldn't learn a bit that I have learned here with you. Thanks 🇧🇷👍
Thank you!
*Brazil meme intensifies in my brain*
@@nonhelpablegamer6070 haha
i am a complete beginner at python and before I watched how you did it i made this code for the quiz game. I copied and pasted your code into vsc just to see how the game should function and I made this:
print('Welcome to the quiz games!')
start = input('Would you like to start the game? ')
score = 0
if start == 'yes':
print("Great! Let's get started")
else:
exit()
cpu = input('What does CPU stand for? ')
if cpu == 'central processing unit':
print('Correct!')
score += 1
else:
print('Incorrect.')
gpu = input('What does GPU stand for? ')
if gpu == 'graphics processing unit':
print('Correct!')
score += 1
else:
print('Incorrect.')
ram = input('What does RAM stand for? ')
if ram == 'random access memory':
print('Correct!')
score += 1
else:
print('Incorrect.')
psu = input('What does PSU stand for? ')
if psu == 'power supply unit':
print('Correct!')
score += 1
else:
print('Incorrect.')
print(f'You ended up with a score of {score} Congrats!')
If anyone has any feedback that would be great!! thank you!!!!!!!!
Thank you for this. Though, I learnt python theoretically for my classes, I haven't been using it much and I'm losing the skills. This has helped me.... As a plus, I created the number guessing game to only take an initial guess and derive the random number using bisection method!
Literally, i didn't know how to programme python and i have no idea; how to achieve my dream. But, you were teach me how to use python and how to achieve my dream. Thank you so much for this great tutorial!!!!!
For those who are struggling to learn Python, like I did, here is a pro tip:
avoid long complicated tutorials you see online. You need to walk before you can run.
Start with very basic Books. Once you get them right, learning everything else becomes much easier.
Edit: For those asking about the books, the best basic one is Javascript In Less than 50 Pages.
It`s about Javascript but it is the fastest to learn the conceps that will be useful in any programming language.
Second I would recommend A Smarter Way to Learn Python. Your knowledge will transform.
hey i just wanted to say thank you for this. i have probably $300-$400 in books i ofc legally obtained and had been reading through and while some of them will be great once i get the basics down, i was having a hard time getting the basics to really stick in my head but the second book you mentioned really helped a lot. thank you for the recommendation and keeping me motivated
@@anactualalpaca7016 someone missed the sarcasm in my comment lol
@@Shamzel lmao
nice scam
This is just your learning style. You must prefer reading to seeing or watching. But also because ive seen your comment and same one under it on more than video, it seems you might be a spam bot anyway to sell books.
I'm trying to wrap my head around the python for around two weeks now. was able to understand the separate blocks, but it was problem for me to be connecting it (if u don't know the rules it's hard to be just trying noticing patterns) and this helped so much. Made all the games with u and feel that I'm much better in understanding this logic! thank you!
been watching how to code in python for awhile now and I felt that I just could not wrap my head around it. But doing these little projects really just showed me that yes I can do it and I have been learning even if it felt like nothing was getting stuck in my brain! Got me really excited about coding, Thank you!
Great tutorial. I'm taking a python class to finish my degree in networking and cybersecurity (2 degrees an a 2yr prog), and this instruction is more 9j point than what I'm learning 8j my class. Thank you.
Hey Tim, great video and excellent for beginners!
I wanted to add that for Rock, Paper, Scissors, there's a slightly more complex (for beginners), but cleaner way to do this (if it hasn't been posted yet) by using modulo arithmetic. Because RPS is a cyclical game, (0 beats 1, 1 beats 2, 2 beats 0), we can use a bit of mod magic ( % ). Some pseudocode below:
If the player choice is equal to the computer choice
Declare a Draw
Else if the ( player choice + 1) % 3 is equal to the (computer choice % 3)
Declare computer wins
Else
Declare the player wins
I know modulo is a bit more advanced topic, but I love using it in situations like this because it removes the need for large if statement chains. This also means if we were to say, want to play "Rock, Paper, Scissors, Lizard, Spock" from Big Bang Theory, it'd be a much simpler modification by simply changing it all to % 5 and extending the choices.
can u please send the code link?
There will be a better way to do nearly everything, compared to what is shown in a beginner tutorial. Modulo doesn't belong in a beginner tutorial.
Bro I have run this project before using Tim's strategy but I think yours is also superb can you enlighten me on it?
nice, thanks!
Just wanted to say you have an awesome channel! Instead of wasting my time and/or copying code I wanted to get back into programming really badly to scratch that itch (front-end development ended up boring the crap out of me with HTML/CSS, and don't even get me started on JavaScript). But the way you explained things so simply and thoughtfully was really something and got me pretty excited! Keep up the good work, Tim! :D
Watching this with my 8yr old son so we can build a mini-game to go along with this birthday party invite. We're going to try and have a code camp party where everyone get's to make their own mini-games. Great tutorial! :)
Thanks for sharing this video! I'm going to go over this video again and do it myself as I listen. I'm in my 50's and I've never really been into computers, much less programming until recently. it takes me longer to understand than it would have 30 years ago but your video is a big help! I'm just getting into this for fun not for a career, but I'm really enjoying it and you make it fun and easy to understand. I look forward to seeing more of your videos. 🤠👋>> 🤓👍
The way you explain things is so helpful! The pace is perfect for me as well.
I was able to pick up right where I left off about a year ago, finish each project on my own after watching the first couple minutes, and even add some of my own customizations (maximum guesses, extra variables, delays, etc).
Thank you Tim!
I understood almost everything! So I'll try to use all that I've learnt and build it by myself
I'm not sure what I'm more surprised about, that (A): you forgot there could be a tie in rock/paper/scissors or (B): that you ran it 4 times and didn't get a tie to remind you! In a way it was a good think, I had to figure out how to add the tie conditions myself, which was good practice!
Love the videos!
The information was excellent. Please create more of these "small projects," as they are quite beneficial in terms of confidence building.
I appreciate everything you've done so far.
Thanks a lot @Tim
I am learning python I am beginner and I never Do any projects and when I start this Videos I think that in this video how you Teach us is so good and after some time being watch your video I think that projects are very easy.❤️❤️thanks brdr
Hello Tim, I've been watching your 5 Mini Projects video and I kept wonder why you kept on using "While True" construct. Then I realized that this is the Do/While equivalent in other languages. In this way you are making sure that the code enters the loop at least once no matter what, and then the check for true or false occurs inside the loop. I'm new at python. Really, I'm new to them all. But I did have some familiarity with the others like 'C', 'Pascal' and 'C++.' For the first time, I am actually sitting down and learning what I've put off for nearly 45+ years, now that I'm retired.
This is so much fun! I paused the video to type this comment lol.
In the third project I noticed that sometimes the computer's pick and mine are the same and the computer wins, so I added 3 elif to print that no one won and try again, in case it happens again and we both pick the same thing. That felt great that I noticed a problem and tried to fix it.
So thank you!
Thanks for the great projects, followed along and wrote them at the same time, sometimes pausing for ages to try and do it before you said anything. Made some pointlessly more complicated or more sleek with some practice, thoroughly enjoyed working on them. Spent multiple hours on this, trying to add more things to it, adding in a lot of "print()" to add blank lines to the output to make it easier to read and more digestible as well as commenting all over my code so the me in 'x_time_period' can still figure out what I've written.
Cab also print("
") as many times to add lots of empty lines easily
hey myan ! honestly i was in search of this kind of video from last 12 months , but literally i had found nothing similar what i think so i was confusing wheather to continue learning programming language or not but you gave me the hope and full confident . Literally myan i was looking videos for last 12 months but i have never gained any-thing though i learned some of the basic but i don't know where to utilized my learned basic butttt when i watched your video than i came to know that i have learned lots of things and now-onwards i will be doing similar kind of project and from easier project to tougher one . Thanks a lot myan . i can't even explain what i am feeling right now .
haha i know my english is weak because it's not my major language but i tried to explain . love you bro from buttom of the heart. LOVE FROM NEPAL
Love this approach! You always need a "real world project" of some sort to work on. else anything will be theoretically and hard to stick with it.
I actually used the password manager as my first project a while ago before even finding this video. There was a lot that i added like features that your project doesnt have but its cool to see the similarities between the two. These are great beginner projects!!
I had done the first three projects before. Never got the point. Now it's all crystal clear. Thanks! Looking forward to the last two projects!
Great videos. I noticed that on the Scissors, Paper Rock, there was no option for a draw, but that was an easy fix by adding another elif statement for the draw and then adding it as an option to count the number of draws by adding another print statement at the bottom
yeah had the same, did the draw first as the if :)
can you guys show this elif 'cause i dont really know how to code this one, ths
@@Adam-gk9or
if user_input == "rock" and computer_pick == "scissors":
print("you won!")
user_wins +=1
elif user_input == "paper" and computer_pick == "rock":
print("you won!")
user_wins += 1
elif user_input == "scissors" and computer_pick == "paper":
print("you won!")
user_wins += 1
elif user_input == computer_pick:
print("It's a draw")
draws += 1
else:
print("You Lost!")
computer_wins += 1
I don't want to just provide the answer as practice will help build and reinforce the knowledge but here is an example (Think of x as user_input and y as computer_pick in terms of the Rock, Paper, Scissors game):
x = 5
y = 5
if x > y:
print("You Win!")
elif x < y:
print("You Lose!")
elif x == y
print("You Draw")
This works as an elif statement checks each statement entered (In this case x == y) to check if it returns a Boolean value of True. Remember, if you add additional statements with the (And, Or, or Not Logical Operators) they must all return a Boolean value of True in order to execute the print() function.
In the case of a tie x and y would have to be the same which would return that Boolean value of True for this statement and execute the print() function.
What an amazing way to learn Python. Super fun, easy to follow along! I'm a complete beginner and know nothing about Python, this gave me a good understanding. Really appreciate it. Thank you so much!
for the rock paper scissors game. To include a draw feature, try the following code as part of the elif statements
elif user_Input == cpu_Pick:
print ("No Winner here, Go again")
something like that worked a treat
Finally, a teacher who gets it!!! Nice and quick. Easy. Real world examples.
Also, on the Rock Papers Scissors, I edited my program for when we picked the same and printed a "Draw".
FYI, in the number guesser, the condition to check for negative numbers will never be hit because the .isdigit() method will return False for negative numbers. The else will catch all the non-positive / non-numeric inputs.
Yes, you need to "try int(some_variable)" to test if a number is an integer (ie. allow for negative whole numbers).
im a beginner and i was spamming negative numbers but the programm didnt give a fuck lol.. now i know why thank you ...
@@cuencaguy9799 right! Here's what I came up with
import random
def getInput(for_next_guess):
prompt = "Please indicate a integer greater than 0 representing the top of the guessing range. "
if for_next_guess:
prompt = "Guess a number between 1 and " + str(top_of_range) + ". "
user_input = input(prompt)
try:
user_input = int(user_input)
except ValueError:
print("Value must be a number.")
return getInput(for_next_guess)
if not for_next_guess and user_input < 1:
print("Number must be greater than 0")
return getInput(False)
return user_input
top_of_range = getInput(False)
random_number = random.randint(1, top_of_range)
guess = 0
while guess != random_number:
guess = getInput(True)
if guess < random_number:
print("too low")
else:
print("too high")
print("Correct!")
I just started coding, I want to be an engineer! This really help thank you!
I completed first 4 projects and learned a lot about program flow and now have confidence that I can make basic programs THANKYOU
Great tutorial. 1 small thing for the rock paper scissors game: you forgot to check for a draw state. But very clear and easy to follow tutorial!
Yep i noticed and made it myself i felt epic
This was an awesome learning experience! One thing I do to test my self is to pause and see if I can figure out the next part, or to add/improvise code that wasn't included in the tutorial.
Same
54:20 I add another "elif", just in case the user and computer picked the same option.
elif user_input == computer_pick:
print("It's a draw.")
user_wins += 1
computer_wins += 1
Great video! But also, if pip did not work for you, try writing pip3 instead, if not, then just do Tim's next steps XD
This content is such a perfect match for just beginners like me!! Thank you so much Tim!
This is the best coding video I have ever seen. He explains it very well.
Loved the content😀 . Please come up with more of these "short projects" they really help building up confidence .
I appreciate your efforts ☺️😌
Thankyou very much ...
yes man they do if u want i can help u build alot of project just dm me
you said trash boyyy
@@royaleleft8896 Where to Dm you??
After less than a week learning python your first project was great! I already knew those functions but this was a fantastic way to put it in practice, worked great. I think I'll try all these.
I had one issue when I tried to skip a head and it took me a little bit to figure out why my final score wasn't working. I forgot that you had to convert an integer to a string, but thats great! this is how you really learn.
The second one I messed up pretty hard going off on my own hahaha the start worked great and I thought Ive got this, no problem. I didn't have it.
Asking if user wants to play the game
6:00
Getting value from input
7:50
Checking if user typed yes
8:06
Telling user if they got the answer wrong (else)
12:42
Making sure that the program counts Capital Letters
17:04
Converting what users typed to lowercase
18:37
implementing score, adding score due to question answers
20:00
what does score +=1 menas
20:34
21:07 ending program
showing user how much % he got right
22:57
*Number Guessing Game*
Importing modules
25:22
using redint instead of redrange
27:38
Generating random numbers and telling players to guess the numbers
28:15
at project 2, in case of negative number the top_of_range
I thought that I was the only one struggling with this
This is a great tutorial, very informative!
I've been working with python for a few weeks for my college course but we haven't had much stuff to do outside of the 1-2 hours a week in class. This video has actually been great to help me understand python better and study. You did great with this one :D
Thank you again Tim. For the first project I made my answers
Awesome! I actually loved it more than normal tutorial. It was fun & entertaining. Keep goin' tim. Love from Bangladesh🇧🇩
From west bengal!!
Are you?
Been learning Python for 3 days, never done any coding or programming ever. I did the first game while watching the video. Pauzing it whenever I needed. Noticed that after giving in the questions and answers it started skipping 1 when running it. Tried to figure out why, apparently I put some spaces before "answer" when copy-pasting the answers/ questions. It was so much fun to searching for it and even more fun to find out why and what I did wrong.
Haha just in the minute I was searching for such a tutorial on yt you uploaded one ;)
Hope you enjoyed it!
lol I was just in that same situation and going to write it too! hahaaha
Yo ur channel name just broke my youtube page lmao
Im just starting to learn how to code myself and this video was a huge help and a ton of fun! I was a bit disappointed that the password manager didn't complete with the encryption as that would have been really cool. I will be watching lots more of your vids going forward. Lots of things to help me improve.
For Project #3- Rock, Paper, Scissors,
I would suggest an additional elif statement for when the user and the computer pick the same choice:
elif user_input == computer_pick:
print("You tied!")
(The user_wins and the computer_wins would not be influenced.)
ahh u didt it more elegant. At least someone mentioned it here otherwise I would have been shocked. I tested it before I watched Tim do it and found the problem and fixed it myself. Now I feel like a Super Programmer xD ;).
You are so good in what you are doing it is a Blessing you are for Real a good Teacher.
Hi Tim, you missing a draw if usr and comp choose the same value in project # 3 :).. best video for learning python
Indeed. Just add before last "else" this:
elif user_input == cpu_pick:
print("Draw")
Great content! it surely has helped a lot of beginners out there. Thank you for this Tim!
ps : you forgot to put the "draw" condition in Rock/Paper/Scissors game :D
10 month old comment, but here is a "draw" condition added into the code. Its also condensed into a single line for each scenario
elif (user_input == "rock" and computer_pick == "rock") or (user_input == "paper" and computer_pick == "paper") or (user_input == "scissor" and computer_pick == "Scissor"):
print("Draw!")
continue
Enjoy :)
I've watched this for a few minutes and am happy because I know by the time am done with watching this I will be doing way better than I am doing right now...such a good facilitator
💯💯Brilliant. Super glad for these tutorials Tim.
A side note, the random.choice(['rock', 'paper', 'scissors'] can also generate a random choice between these three options. The choices() method returns a list with the randomly selected element from the specified sequence
best beginner coding video .its like a gem
Thank you tim currently working on a password manager too this will help me 😄
@ANoobyPlayer UwU It's a scam, LoL.
These are the online bots, who comment on RUclips channels.
Guess what!!, these are coded with python 😂
@@playerscience :))))))))))))
It's so beneficial to follow along step by step instead of just watching and concluding "I got this." I was missing a semicolon once, didn't indent another time and put the lower() function after the wrong variable (answer.lower() = input("....))
All of which drew error messages that I never would have learned about if I thought: this is too easy a project; let me skip to the next one..
Something basic I added to the scissors game to let you know how much you won or lost by... right under the while true loop.
while True:
user_input = input("Type Rock/Paper/Scissors or Q to quit: ").lower()
if user_input == "q":
if user_wins > computer_wins:
print("You won by", user_wins - computer_wins)
elif user_wins == computer_wins:
print("You both got equal wins at", computer_wins, "each. Play again.")
else:
print("You lost by", computer_wins - user_wins)
break
This is awesome. The first time I ever used a computer was a choose your own adventure. Must have been around 1983 or so. I believe it was on a TRS-80. It was saved on a cassette tape.
I am still learning but I do know that doing an f string is far easier than adding multiple strings together in one line.
print("You got " + str((score) + " questions correct!"))
Is the same as
print(f"You got {score} questions correct!")
I hope this helps!
Edit: I am using PyCharm Community application to code with Python. The Rock, Paper and Scissors did not work for me and I still am unsure why it doesn't. It could be the application's limitation. (I did copy the code exactly as in the video).
Yeep, simpler way of doing it
print ("You got" ,score, "questions correct!")
another way to do it
can you share the error message? If you copied the code (as in copied and pasted it into your program) then the error most likely be because of indentation error. When you indent, you use the Tab key, and that makes "tab spaces". If you copy the code online then most likely the indentations are normal spaces because most websites don't support tab spaces. Try replacing the indentations of the code with tab spaces and see if that worked
make another edit and add the error message
I do apologize for anyone asking me questions in this thread. I stopped learning and messing with Python code a month ago and really would be of little help in finding solutions.
One of the BESTEST tutorial I tried so far! You're explaining in a very understanable way, thank you!
Great video👍 I would add to the rock paper scissors game a line in the whole loop that checks for a tie and add a tie counter as well
yeah, that would've been a nice addition, as would be showing how many ties there were. maybe also counting a win after beating the opponent 2 out of 3 times.
i wanna python course tim did he have one free ? he s so good
Hi, I have a question, why when I write -25 is giving me "Please type a digit next time. " and not Please type a number greater than 0 next time." min 32:40
Make a video how to become super productive
And how you are so dedicated
How to become disciplined
Importance of studying
Things like that..
Great idea!
I need friends who wants to learn python
We will learn together
This might be one of THE MOST informative and straight forward vidoes that i have ever watched regarding python programming! Thank you so much!
These mini projects are great Tim. They more helpful to strengthen my basics. But in rock paper scissors task , if user and computer picks same then computer would win.
yeah i found the same issue. There isn't a tie scenario
I did the first project and learnt a lot by just doing that! It was fun, I tried adding new things in my code as well! Overall, for a beginner, this is definitely a great video to watch and learn! Thank you so much Tim! I'm going to start learning more about python, ML from your channel
may I know a little bit about the first project that you have made
@@Nobitasi It's from this video, the quiz game