3 Mini Python Projects - For Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 มิ.ย. 2024
  • If you're a beginner or intermediate programmer seeking short, fun, and interesting projects to work on, then here are 3 Unique Python Projects to work on! You'll see me code completely from scratch, break down the problem (my thought process), come up with a solution, and fix any problems and/or bugs.
    Code In This Video: github.com/techwithtim/3-Mini...
    💻 Master Blockchain and Web 3.0 development today by using BlockchainExpert: 🔗 algoexpert.io/blockchain (Use code "tim" for a discount!)
    💻 Accelerate your software engineering career with ProgrammingExpert: 🔗 programmingexpert.io/tim (Use code "tim" for a discount!)
    🎬 Timestamps ⏱️
    00:00 | Video Overview
    01:11 | Environment Setup
    02:00 | Programming Expert
    02:22 | Project #1 - Pig
    23:48 | Project #2 - Madlibs Generator
    39:42 | Project #3 - Timed Math Challenge
    ◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
    👕 Merchandise: 🔗 teespring.com/stores/tech-wit...
    📸 Instagram: 🔗 / tech_with_tim
    📱 Twitter: 🔗 / techwithtimm
    🔊 Discord: 🔗 / discord
    📝 LinkedIn: 🔗 / tim-ruscica-82631b179
    🌎 Website: 🔗 techwithtim.net
    📂 GitHub: 🔗 github.com/techwithtim
    One-Time Donations: 💲 www.paypal.com/donate?hosted_...
    Patreon: 💲 / techwithtim
    ◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
    ⭐️ Tags ⭐️
    -Tech with Tim
    -Python
    -Coding for Beginners
    ⭐️ Hashtags ⭐️
    #techwithtim #programming #python

ความคิดเห็น • 192

  • @amroulouay6819
    @amroulouay6819 11 หลายเดือนก่อน +194

    The three essential elements for coding success: pizza, coffee, and a solid collection of Stack Overflow bookmarks!😂

    • @demolazer
      @demolazer 10 หลายเดือนก่อน +11

      And ChatGPT 4.0 for when lazy/hungover

  • @southvillechris
    @southvillechris 8 หลายเดือนก่อน +41

    Just wanted to say how awesome and easy to follow your tutorials are! I watched this and your intermediate project tutorial, and they're brilliant. Thank you!

  • @brussells
    @brussells 11 หลายเดือนก่อน +19

    Yet another great tutorial! Digesting it all, and then will code along with you, to make sure it all sinks in.
    There's something about the way you teach, and explain each step, which really makes it clear. Will have to check out your course 😉
    Appreciate all the work you put into your videos, and the amount of free content you provide. Excited to watch and learn more!

  • @user-mh7qs7py4u
    @user-mh7qs7py4u 10 หลายเดือนก่อน +9

    just got back into coding and i came across your channel and i must say i love the way you teach! Thank you for being so thorough and beginner friendly :)

  • @user-xr3jp2cu6t
    @user-xr3jp2cu6t 3 หลายเดือนก่อน +9

    00:01 Learn to code 3 unique Python projects from scratch
    01:43 Project 1: Pig - A multiplayer game where players roll dice and accumulate scores.
    05:20 Generating a random role for a game
    07:13 Checking for valid number input and breaking out of the loop
    11:03 Using underscores for variable names and looping through player scores.
    12:57 Checking and converting input for rolling the dice.
    16:52 Implementing the logic for simulating turns and calculating scores for players.
    18:30 Simulating the game progress and determining winner
    21:50 Finding the maximum score and the winning player
    23:41 Creating a Mad Libs generator
    26:49 Using open function to read a file in Python.
    28:28 Replace all instances of a given word in a string with user input.
    31:52 Using sets to find unique words and creating a dictionary for word values
    33:34 Using dictionary to store and access key-value pairs
    37:11 Using Python to replace words in a story
    39:16 Project three involves generating random math questions and timing how long it takes users to answer them.
    42:38 Using eval function to dynamically calculate the answer
    44:34 Showing how to use the eval function in Python to evaluate expressions.
    48:08 Implementing a timer and tracking correct answers in Python.
    49:48 Introducing a timer function for user input.
    53:25 Coding practices and availability of code

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

    I just got a job as a python instructor in high school because of your videos, didn't know any python beforehand!
    thank you so much

  • @crownyyJ
    @crownyyJ 9 หลายเดือนก่อน +3

    bro you literally the best teacher of python. Ive look at other videos and they either too long or saying something that out of topic i like how you go straight to the point

  • @DJ-ct6so
    @DJ-ct6so 8 หลายเดือนก่อน +7

    That was great Tim, many thanks. I've watched a few Python tutorials already, but I still managed to pick up a few valuable tips. Python continues to surprise me with how simply and efficiently it's possible to write a normally 'code-consuming' process in just a couple of steps. One great tip was
    player_scores = [0 for _ in range(players)]
    I didn't know that a for loop was allowed to be used to build a list in that way.
    Thanks again for your help, expertise and generosity.

  • @amaarquadri
    @amaarquadri 9 หลายเดือนก่อน +16

    At 11:27, you can also write player_scores = [0] * players;
    And you could have made it harder to accidentally make the mistake of the extra len call with better naming: name the variable player_count rather than players.
    Also, you might want to extract a play_turn function that plays the entire turn and returns the score for that turn.

    • @hacktivist...727
      @hacktivist...727 5 หลายเดือนก่อน

      that's exactly what i did i made 3 functions a roll function and a func that get the turn of the player and a fucntion that get the valid player count

  • @SachithNalakaMuhandiram
    @SachithNalakaMuhandiram 9 หลายเดือนก่อน +4

    I had just completed all 3 projects. Thanks for this great practical tutorial.

  • @tso.voyage
    @tso.voyage 8 หลายเดือนก่อน +1

    also theres a little bypass in the pig project, if you type no for the number of players then type a number that should be invalid it will count it as valid, to fix this just put "from asyncore import loop" in the start of the code and put "if players > 4:" after the "print("Must be between 2 - 4 players.")" and then after the "if players > 4:" put "print("Invalid, must be below or equal to 4")" then below this put "loop" , sorry if i made this confusing but thought i would just add that.

  • @josecintron85
    @josecintron85 10 หลายเดือนก่อน +8

    Another great tutorial. Programming that Pig game was fun. I needed to practice my Classes so I created a class for each player. I even took the pig a step further and created a Hog variant and ask the user which one they want to play.

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

      How did you make the classes?

    • @Jay-pe4gx
      @Jay-pe4gx 9 หลายเดือนก่อน

      a hog variant?

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

      ​@@Jay-pe4gxhog is variant of pig

    • @Jay-pe4gx
      @Jay-pe4gx 9 หลายเดือนก่อน

      @@josecintron85 how does it work

  • @MustaphaOuchen-qr2tf
    @MustaphaOuchen-qr2tf 10 หลายเดือนก่อน +3

    Great video! Your explanation of Python is really helpful. Can you please make a video on how to send a single message to a group of people at once using Python? Thanks in advance for your amazing content

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

    What a great content you are producing Tim! Kudos ❤

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

    What a great content ❤ Ivam getting more and more captivated by these tutorials Tim. Thank you 😊

  • @thestickbuster1852
    @thestickbuster1852 10 หลายเดือนก่อน +1

    This is great. thanks Tim!

  • @user-pt5dz3br6r
    @user-pt5dz3br6r 22 วันที่ผ่านมา

    I love coding Python especially that I am an intermediate Python coding skill. I would love to follow some tutorial and projects in Python with you! Oh yeah, I already liked your video. Thank you so much for teaching me something new today, I appreciate it!

  • @ericcrowell9493
    @ericcrowell9493 11 หลายเดือนก่อน +3

    Hey Tim! Great video as always! Something that caught my attention though was toward the end of the pig game where you're displaying the winning player number. You use the max() function to get the high score from the array, but then you use the index() function to get the player number. Wouldn't this cause a bug when there's a tie? (Not that the program would crash but that it would display incorrect information about the winning condition.)
    Either way, great job again!

    • @TechWithTim
      @TechWithTim  11 หลายเดือนก่อน +1

      Good point that could potentially cause a bug! Nice catcg

  • @peterdoyle1994
    @peterdoyle1994 26 วันที่ผ่านมา

    I really liked your 3rd project Tim. Thanks.

  • @user-vz5ln8bf1k
    @user-vz5ln8bf1k 11 หลายเดือนก่อน

    Thanks for your hard work Tim really appreciate it as a teenage beginner

  • @manultyagi-go3jy
    @manultyagi-go3jy 4 หลายเดือนก่อน

    I had a lot of fun building all three projects

  • @editedrectangle1385
    @editedrectangle1385 หลายเดือนก่อน +1

    Just finished a python practical course and wanted to test my skills. This video was an eye opener for several of problem solving skills needed for any job, gotta say everyone have to at least try to attempt these by themselves and make improvements on the already existing block of code.
    Thankyou so very much!!

    • @kelvin7259
      @kelvin7259 23 วันที่ผ่านมา

      You mentioned a practical course.... PLEASE! do you know where i can also sign up for that.

  • @Lawleit_L
    @Lawleit_L 9 หลายเดือนก่อน +7

    Use the F-String it is better than the plus operator.

  • @alekthander
    @alekthander 6 หลายเดือนก่อน +4

    A clear and easy-to-follow tutorial. Exactly what I was looking for. Thank you so much for your videos

  • @paulthomas1052
    @paulthomas1052 11 หลายเดือนก่อน +2

    Great trio of Python classes. Thanks Tim !

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

    Sehr Gut! Danke 💚

  • @peterfargo6044
    @peterfargo6044 9 หลายเดือนก่อน +3

    For anyone having an issue with "value = roll()" try: value = roll(min_value=(), max_value=())

  • @jorgesahagun381
    @jorgesahagun381 28 วันที่ผ่านมา

    thanks for making this videos !! do more beginner and intermediate projects whenever you have the chance

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

    Thank You sir!
    I really enjoyed and learn a lot 🙏

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

    Love your tuts Tim. Quick question, is keeping track of start_of_word with -1 needed? It doesn't seem to actually be doing anything outside of itself since we are using i to get start and end of word. I tried removing it and it still seems to work but maybe I missed something? thx

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

    I'm having so much fun thank you :)

  • @user-yc6fn4om8u
    @user-yc6fn4om8u 11 หลายเดือนก่อน

    תודה אח יקר

  •  5 หลายเดือนก่อน +1

    Great Tutorial!!!

  • @rrrprogram8667
    @rrrprogram8667 11 หลายเดือนก่อน +14

    Who dreams to become like tim

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

    This is a great content, will you be able to show a mini project from start to end. Something like how you get the data, how you code and how you create API and how you deploy. Thanks

  • @ever-learner
    @ever-learner 10 หลายเดือนก่อน +3

    Hi Tim, I want to ask something. I'm a bit new to software. What I was wondering is, we made a game with python in project-1. So, can we use these codes on a mobile application or a game website? Or is it necessary to use a language other than python for these? (By the way, can you code such a small game for mobile? I'm very curious how the process is with the UI and deploy processes.)

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

    really interesting content, many thanks!

  • @garrettsmith315
    @garrettsmith315 11 หลายเดือนก่อน +1

    The Programming Expert videos are like these tutorials on steroids!!!! It took me a long time to bite bullet but its well worth the price ( caught a sweet deal and bought the entire package) !

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

      So glad you’re enjoying it!

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

    Thankyou I got it at the right time

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

    I'm a python n00b! not afraid to admit it :p I have some good bash scripting experience, and some JS / php, and am loving python so much! thx for this cool video. i really like your teaching style!

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

    Rather than using eval could you also use an if statement or some other function and then just do left operator right to get ans? Eval opens up some vulnerabilities but i suppose for a project like this it's fine.
    Great video though

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

    Thank you for your video!!

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

    New here. I find this content absorbable and enjoyable. I like the direct approach to learn some basics.

  • @selinaakhter9695
    @selinaakhter9695 11 หลายเดือนก่อน +14

    Hi Tim, I just wanted to say that Im really starting to enjoy these mini project videos. if it isn't to much of a hassle, I believe that you should also try and continue the building games in an hour series. anyways, keep up the good work and thank you for the tutorials

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

      Hello can we work on projects together ?

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

    Thanks for your video, the explaination is great. I started with the first project, I think it is a good example to get into coding and loops.
    However, I am sorry if I am wrong with this but I think the code does not work as you intend it to.
    If your score gets over 50, you can continue rolling as long as you like.
    The reason this does not show up in your testing is that 50 is a very high number and there is almost always either a 2 being rolled or the player terminating before reaching this point.
    When you set the max_score down to 15 you will see that the termination does not work. This makes sense as the termination happens outside the for-loop and the for-loop will let you dice as long as you dont roll a 1 or terminate yourself.

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

      I now adjusted the code, you need another if statement for exiting when score > 50

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

    Hey TimWithTech ive wathec a coupple of viedos and id love to learn more about webdevelopment using django in python. love all ur vids, greet explainations!

  • @k.h.p.9862
    @k.h.p.9862 10 หลายเดือนก่อน

    Thanks for this video! I'm a beginner.

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

    Great tutorial thanks.
    Just one question if we wanted to make the curent_score zero and not store the score from the previous turn when we role 1 after few turns what can we change?

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

    Great Video Tim

  • @Aesthetic_Plastic_Surgery
    @Aesthetic_Plastic_Surgery 11 หลายเดือนก่อน +1

    Excellent approach 👍

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

      Glad it was helpful!

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

    Thank you~

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

    When I made the pig game I only used one while loop and implemented a series of if-else statements. Out of curiosity which is the better coding practice?

  • @plinketharry7469
    @plinketharry7469 11 หลายเดือนก่อน +2

    It's shoulders Tim today lads

  • @Artourial-rw3gp
    @Artourial-rw3gp 5 หลายเดือนก่อน

    Some beautiful mini projects to get the vibe and gist of how one needs to think to code.
    print("Thanks Tim!")

  • @hacktivist...727
    @hacktivist...727 5 หลายเดือนก่อน +1

    Hey time in 32:55 i saw a way of removing duplicates and keeping the order without the use of sets and i did this
    unique_words = list(dict.fromkeys(words).keys())
    print(unique_words)
    i created a new list called "unique_words" and changed that into a dictionary and obvs a dictionary has only one unique key value so it removes the duplicates and i retrieved the keys using the key methodes then i changed back to a list

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

    Hello Tim , ur advice plz what you encourage me to copy the code when I watch the video or watch a part of it and try to make the same project . Or watch the full video and Try to make the same project and when I suffer alot I rewatch it

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

    Thanks alot 🥰

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

    Tried project 1 before watching the steps and I ended up writing a code that was more than 200 lines long then I came to see your solution and it was only 50 to 60 lines long lol. And yours was even cleaner except I added the option to play against computer to it

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

    hello Mr Tim this video is great thanks for the nice work

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

    first python project that i made that does something! yay!!

  • @user-hp7rr6xs7p
    @user-hp7rr6xs7p 8 หลายเดือนก่อน +1

    Hey, Great tutorials. keep up the good work. but i have found a mistake in the dice game: If i run my code the "Do you want to roll (y) ?" doesnt work and i am in an endless loop

  • @JosphatKangethe-yp1mh
    @JosphatKangethe-yp1mh 11 หลายเดือนก่อน +2

    hey Tim your tutorials have helped me and my buddies thank you so much

    • @TechWithTim
      @TechWithTim  11 หลายเดือนก่อน +2

      Great to hear!

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

    Thank you

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

    "Bear and tim live happily ever after" made me burst out of laugh....BTW thanks for ur tutorial.

  • @rrrprogram8667
    @rrrprogram8667 11 หลายเดือนก่อน +4

    My question is, how do you remember and keep a track of SOOO many variables you create while writing the code ???

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

      you dont...its just a mental game...

    • @TechWithTim
      @TechWithTim  11 หลายเดือนก่อน +6

      it helps if you name them logically then its more similar to english when you're writing the code making it easier to comprehend

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

    Wow your a great coder thank you for this video

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

    thx a lot mister genius

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

    Actually for the madlibs generator a faster way to do it would be to use a formatted string to insert the words in

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

    For the Pig game, I do not understand how the while loop for the player number 2 turn can run when the loop has already exited.
    When the initial max score (which is 50) has been reached, we *break out* of the while loop.
    So how can the player number 2 turn can still run when it is in the while loop?
    Please explain, I'm lost.

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

    Hi, thanks for the video. What is that program being used?

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

    Bro, if we do it again again means
    The current score will add to players score if the players will completed the game means the players score will store the value of the previous game why the game is starting again it doesn't ask any question " how many players want play"
    And also why the players score will store the new value once user finished the game ?

  • @peace-to-the-world
    @peace-to-the-world 11 หลายเดือนก่อน

    Real learning is
    if students give you a task they've seen before,
    and how actual skilled expirienced teacher handles with it LIVE(!),
    not task prepared by himself, explaining all his thoughts at every step

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

      Fair enough, what task would u like me to do?

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

      @@TechWithTim just a thought. It would be nice to see something on - i don't know - 3 or 4 different levels? Something like an RPS Character generator, first in a very simple, beginner level, like add a name, age, race, some basic stats. Then in a next video or just next part add some more complex functions, like saving/loading/deleting a character, selecting some traits than can affect the basic stats, and on a "higher" level some more (idk tbh im way too beginner to come up with something reasonable). It's just one iteration, but the basic idea is to have the same project and work it out as you progress with python. - Btw thank you very much for the video. I was struggling with some loooong tutorials presenting all what you can do with python without context. This and the older mini project video helped a lot to have a basic understanding about what these elements do in practice.

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

      It works well enough, even if your idea is solid you sound jealous :P

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

    Hello Tim, I just Wanted to know that when is the code jam happening, i am interested to join. Thanks.

  • @staywithola9724
    @staywithola9724 11 หลายเดือนก่อน +4

    bro, you are the best. Please do more of beginners projects. Thanks.

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

    Thanks

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

    im honestly kinda confused. the commands are kinda diffrent , i use "thonny" and like commands u show in the video are diffrent & dont work? "import random" is "from random import*" for example. this is like the only thing i managed to figure out the rest god knows what they are. can u link a list that like translates the commands.? i know python has versions that might change the prefixes & like "names" of certain commands so is there a way to check that or sum?

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

    Just started coding, heard it might be useful in the future, but I did the pig game tutorial and it isn't working. So I opened up the github link, and copied the code into the venv, and it wouldn't work. I'm using pycharm. Any ideas?

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

    It's going to be a long shot since this is already an old video, but I am struggling with the first project and would love to have some help. I think my issue comes from around line 26 to 29.
    I have written exactly the same as him, however when I run the game I get "player number 1 turn has just started" + "player number 2 turn has just started." So for some reason my text keeps on giving me both player number instead of just saying "player number 1 turn has just started." Does anyone know how to change this issue ?

  • @raodevendrasingh
    @raodevendrasingh 11 หลายเดือนก่อน +1

    Can you please update your django course with pycharm?

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

    very good

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

    Great! 😁

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

    for project 3, the math game, does anyone know how to make the game continue after an incorrect guess? it repeats the question over and over until you get it right, but i want it to continue and stop at 10 and calculate percentage of accuracy after that

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

    I appreciate the crash course. I am more familiar with running and testing code so please forgive me for being a noob. I literally go tripped up on step 1 project 1. When you import the random module how do you get this into your python ide? I am using vs and I checked the extention hub but it was not clear what I should install if this is even the correct place to install random from. Please lend some advice. Thanks!

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

      I answered my own question. I needed to specify this was a python file.

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

    Tim, thank you for this. Just finished the first project. Why all the extra work for the roll function, though? I don't understand your thinking making min and max variables.

    • @TechWithTim
      @TechWithTim  11 หลายเดือนก่อน +3

      Just to make it extremely clear when reading the code!

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

      @@TechWithTim Nice

  • @aaron-ut4ro
    @aaron-ut4ro 4 หลายเดือนก่อน

    When i import the story.txt, it doesnt show up. How would i put it in the same directory?

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

    can somone help me on the madlibs it keeps saying "str " object has no attribute "add"

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

    In project 2, it keeps on dallsayinh story is not defined but i checked and story text file is in the same folder i dont understand anyone help

  • @ugochukwujonah1683
    @ugochukwujonah1683 7 หลายเดือนก่อน +2

    what if I want to print my players by their names?I have been struggling with this. thank you for the awesome projects

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

      I guess: use player_idx as an index to get a name, ex player 1 would be index 1 that would mean the second name in a list, so varable = ["no player",Jon,Bob,Ragnar]
      player 1 Jon, Im a noob so i guess someone could type a better solution, but this is my estimat of how it would work in a way.

  • @ash1263.
    @ash1263. 6 หลายเดือนก่อน +2

    On the Pig one, when it runs it just keeps asking Would you like to roll?, over and over again until you type something other than y, then it displays the score and moves to the next player. In your video it asks once and then displays your score each time. I’ve looked through and I’m not sure what I’ve done wrong, how can I fix it?

    • @PipeDeveloper
      @PipeDeveloper 8 ชั่วโมงที่ผ่านมา

      You are missing a break either on the while that controls if the player wants to continue rolling or in the if that controls if the player rolls a 1

  • @Lavfar
    @Lavfar 7 หลายเดือนก่อน +1

    If I want to add countdown timer for 10 questions Then how can I do that. Example I want to finish quiz in 20 seconds or else timed out then how to do please help me

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

    I am having trouble with Visual Studio Code not updating the code I'm running even though my .py file has been updated.

  • @harinipalaniappan5836
    @harinipalaniappan5836 23 วันที่ผ่านมา

    I tried the first project,I completely stick that code only , but I got maximum score of 73 as output, the maximum score is 50 only why it comes like that?

  • @user-fk7dn6ou5v
    @user-fk7dn6ou5v 5 หลายเดือนก่อน

    i just want to know y the (wrong=0) and (wrong+=1) used here , without using also the code executes as usual, can anyone help me ?

  • @jordanj3735
    @jordanj3735 8 หลายเดือนก่อน +1

    At the start of my game. It’s saying that all players have started instead of the one. Can anyone help?

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

    I copy and pasted your pig game code you uploaded as I thought I messed up, but the turn doesnt end automatically when a player reaches a score of 50, anyone know how to fix this?

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

    There is one edge case in the first game if all the players has the same score then by default the player 1 will win. Thanks

  • @MWE36
    @MWE36 18 วันที่ผ่านมา

    It looks so easy to code when watching someone but without help im happy to write hello world without error

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

    Can you make some project tutorials on JavaScript

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

    I want this game to be between/among two or more players which are registered in database in Django.
    How?

  • @tone2812
    @tone2812 7 หลายเดือนก่อน +1

    I still need to get better at properly thinking about what I want my code to do. And then executing it. I don’t want to be in tutorial hell.