Python Tutorial - Your First Program

Pubblicato il: 24 aprile 2018
sul canale di: Gary Explains
69,972
1.7k

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:   / garyexplains  
Instagram:   / 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
---


In questa pagina del sito puoi guardare il video online Python Tutorial - Your First Program della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Gary Explains 24 aprile 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 69,972 volte e gli è piaciuto 1.7 mille spettatori. Buona visione!