Python Tutorial – Your First Program

///Python Tutorial – Your First Program

Python Tutorial – Your First Program

FavoriteLoadingAdd to favorites

If you want to get into computer programming, one easy way is to use Python. Here is a quick tutorial which will show you how to get started with Python programming on Windows.

Twitter:
Instagram:

####
import random

n = random.randint(1,10)
print(“I am thinking of a number between 1 and 10”)

running = True
while running:
guess_str = input(“Take a guess “)
guess = int(guess_str)
if guess == n:
print(“Well done, that is right!”)
running = False
elif guess < n:
print(“Try a bigger number”)
else:
print(“Try a smaller number”)

#####


Python Tutorial for Beginners
Introduction to Python Programming
Learn Python
Python for Windows


source

By |2020-10-01T09:51:56+00:00October 1st, 2020|Python Video Tutorials|49 Comments

49 Comments

  1. cancan740 October 1, 2020 at 9:52 am - Reply

    very good video , thans for the info

  2. Mark Portrais October 1, 2020 at 9:52 am - Reply

    Canโ€™t wait to try this today after work! (Noob here)

  3. Pain Uchiha October 1, 2020 at 9:52 am - Reply

    my dad is making me code so far not bad

  4. Meddy Ben Ayed October 1, 2020 at 9:52 am - Reply

    This was very helpful. Thank you.

  5. TheEditor October 1, 2020 at 9:52 am - Reply

    How would you restart the game without running the whole game again. Also how would you add something that keeps tracks of how many attempts you have had

  6. Kurt Smock October 1, 2020 at 9:52 am - Reply

    Thank you sir =)

  7. Iulian Laurentiu Gagiu October 1, 2020 at 9:52 am - Reply

    ca you tell me how did you download this Python. I have downloaded version 3.8.2 for Windowsd 8.1 64 bits and I got a Python which opens like CMD from Windows. And how do you switch between lines? I will appreciate if you could send me an email at gagiu2000@gmail.com.Thank you

  8. Mei Unardhal - FBI October 1, 2020 at 9:52 am - Reply

    brilliantly explained with exactly what is essential to start with.. Keep up the great work..

  9. I forgot My name October 1, 2020 at 9:52 am - Reply

    I am able to get this to work but I can only do a really simple one:

    import random

    n = random.randint(1,10)

    print("I am thinking of a number between 1 and 10")

    running = True

    while running:

    guess_str = input("Take a guess ")

    guess = int(guess_str)

    if guess == n:

    print("Well done, that is right!")

    running = False

    else:

    print("You Wrong")

  10. TryHards October 1, 2020 at 9:52 am - Reply

    he has 666 likes lol

  11. Mr. Rich B.O.B October 1, 2020 at 9:52 am - Reply

    If only it were as simply as typing

    {
    write me, "Hello," daddy.
    }

    and it do it.

  12. CrossThread Aero Industries October 1, 2020 at 9:52 am - Reply

    Super, just what I needed, right to the point. Voila, never programmed in Python and now I entered a program and ran it, successfully.
    Star going up on fridge.

  13. Rodrigo Fernandes October 1, 2020 at 9:52 am - Reply

    Very cool! I liked a lot xD

  14. BE October 1, 2020 at 9:52 am - Reply

    Please make more videos like this…ur way of teaching is great ๐Ÿ‘

  15. Ramy Abdoo October 1, 2020 at 9:52 am - Reply

    Please more python videos

  16. LYF hAXx October 1, 2020 at 9:52 am - Reply

    Garry make one for Mac OS also

  17. Prathamesh Nair October 1, 2020 at 9:52 am - Reply

    Thanks Gary !!! Excellent

  18. Akshay Kumar October 1, 2020 at 9:52 am - Reply

    yes, please more on python and programming

  19. Typicalsandman October 1, 2020 at 9:52 am - Reply

    So, I've decided finally that I'll learn python after my FreeCodeCamp course

  20. Chrisokwy Maduka October 1, 2020 at 9:52 am - Reply

    hello Gary, am a beginner in python . you just blow up my head now. am impressed Thanks

  21. bokkenknuser October 1, 2020 at 9:52 am - Reply

    Make more please ๐Ÿ™‚

  22. Pay Pul October 1, 2020 at 9:52 am - Reply

    Python is great! I made a script for cloning HALs very easily. I could've used Bash but its actually in my CS course.

  23. beardninja October 1, 2020 at 9:52 am - Reply

    More Python please!

  24. Stevethesearcher October 1, 2020 at 9:52 am - Reply

    Gary knows his stuff. He is undoubtedly a Tech expert. However he just rushed through the fundamentals of programming way too fast in this video. He barely explained everything. If you know about programming this video wonโ€™t be of any use to you. If you donโ€™t know anything about programming you wonโ€™t understand what he is saying. Who exactly was this video for?

  25. Mahesh Bharadwaj October 1, 2020 at 9:52 am - Reply

    Does python also manage memory automatically ?
    Does it support pointers ?

  26. Ura Nium October 1, 2020 at 9:52 am - Reply

    Finally I have an excuse to learn python.

  27. Whitey October 1, 2020 at 9:52 am - Reply

    Cool video, I personally use VB and I'm just starting to learn python, and this was simple and easy to follow.
    A video suggestion : How to dual boot windows and linux. Hope you take in to consideration.

  28. Peter G October 1, 2020 at 9:52 am - Reply

    Thanks for a nice Python video. I think learning Python will be easier via a structured course rather than ad-hoc youtube videos.

    I think a good idea for a mini-series is an overview of each individual language, what is it good for and how to get started (e.g. best courses online) – Python would be a great start

  29. muhammad waseem October 1, 2020 at 9:52 am - Reply

    Please make awesome videos like this.
    We will wait
    Thanks alot

  30. Crimson Azure October 1, 2020 at 9:52 am - Reply

    does python use double or float for decimal numbers? I think a python series would be a great idea!

  31. I'm studying C++ language, and I've gotta say python is way similar to C++

  32. QouNik ToRsha October 1, 2020 at 9:52 am - Reply

    Python python python especially (python function)

  33. Mohammad Raihan October 1, 2020 at 9:52 am - Reply

    Sir, i follow all of your explain videos…. I want to be a android rom developer. Is it mandatory to know programming languages for that??? If yes, than which language do i have to learn??? I watched your video on how to develop rom but i am not clear about this. Please help me…

  34. Rahul Agarwal October 1, 2020 at 9:52 am - Reply

    Although I have been spending the past few hours coding a RNN on python, i still see this introductory video to the full ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

  35. Frisaq Page October 1, 2020 at 9:52 am - Reply

    thanks a lot gary
    i purchased already the "learn to make app in android", degit course, and it's really to thank you for the effort you make in teaching other thanks

  36. patrick cadette October 1, 2020 at 9:52 am - Reply

    Nice.. great one.. thanks for the great videos ..๐Ÿ˜๐Ÿ˜๐Ÿ‘๐Ÿ‘๐Ÿ‘๐Ÿ‘

  37. Sohan Singh October 1, 2020 at 9:52 am - Reply

    It's amazing…. Just make a series of videos teaching python

  38. Sean C. October 1, 2020 at 9:52 am - Reply

    Python is the ultimate high level language especially for learning. I learned on VB and C which was much less straight forward. Some people don't realize how powerful python actually is.

  39. Mark Keller October 1, 2020 at 9:52 am - Reply

    GARY!!!
    Afternoon Professor!!!

  40. mattig89ch October 1, 2020 at 9:52 am - Reply

    I would be interested in learning why python of other languages. And maybe seeing some basic programs too. Just not every video. Keep up the great work!

  41. MrSammy October 1, 2020 at 9:52 am - Reply

    ๐Ÿค“ What a coincidence! Today at Freegeekchicago they have a free 'Introduction to Python' class ๐Ÿ๐Ÿ˜Š

  42. Gambit October 1, 2020 at 9:52 am - Reply

    i see python
    i panic++

  43. 50PullUps October 1, 2020 at 9:52 am - Reply

    Wonderful1

  44. Zaman Siddiqui October 1, 2020 at 9:52 am - Reply

    GARY!
    Afternoon, professor!

  45. Sayid Abyan October 1, 2020 at 9:52 am - Reply

    o shitt you should do more of these for other language too, and maybe make a playlist out of it

  46. Barun Bagchi October 1, 2020 at 9:52 am - Reply

    Sir it was a Great Video. Pls make More Videos On Programming..
    Sir Pls Kindly Tell How did you Customize the Restart Path In The Shell Window??

  47. Chitraansh Popli. October 1, 2020 at 9:52 am - Reply

    Btw I love your videos but this one would have been better if it would have had at least a little depth. Like maybe telling a little bit about Python. Like telling that numbers are pseudo-random and not random. I am saying because you are very good at explaining and people will easily get it.

  48. Chitraansh Popli. October 1, 2020 at 9:52 am - Reply

    Is this gonna be a series???

  49. Naresh Pillella October 1, 2020 at 9:52 am - Reply

    Loved it

Leave A Comment

*