HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Python Tutorial - Your First Program

75,790 views November 2, 2018 6:54

Watch on YouTube
ChannelGary Explains

Description from the creator

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: twitter.com/garyexplains
Instagram: instagram.com/garyexplains/

####
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
---

About this tutorial

Gary Explains published this 6:54 video tutorial on November 2, 2018. It has been watched 75,790 times on YouTube.

Category
Education
Duration
6:54
Published
November 2, 2018
Views
75,790
Likes
1,838

Tags

Share

This tutorial in other languages