Skip to Main Content
USE A CABEÇA! PROGRAMAÇÃO
book

USE A CABEÇA! PROGRAMAÇÃO

by David Griffiths, Paul Barry
January 2009
Beginner to intermediate content levelBeginner to intermediate
440 pages
13h 6m
Portuguese (Portugal, Brazil)
Alta Books
Content preview from USE A CABEÇA! PROGRAMAÇÃO
começando a codicar
você está aqui 21
O Python usa indentações para conectar os caminhos
O código dentro das instruções if e else é indentado. Não é
apenas para tornar o código bonito. No Python, as indentações
importam. Consideremos uma parte diferente do código de
exemplo: algo que decidirá se você pode dirigir no centro da
cidade. O Python usa identaçõess para conectar uma sequência de
comandos para formar caminhos.
if fuel > 3:
print("It's OK")
print("You can drive downtown.")
else:
if money > 10:
print("You should buy some gas.")
else:
print("You better stay at home.")
print("What's next?")
O primeiro desvio if
Este segundo desvio ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

USE A CABEÇA! ÁLGEBRA

USE A CABEÇA! ÁLGEBRA

Tracey Pilon, Dan Pilon
Use A Cabeça Ágil

Use A Cabeça Ágil

Jennifer Stellman, Andrew Greene
Use A Cabeça Padrões E Projetos

Use A Cabeça Padrões E Projetos

Eric Freeman, Elisabeth Freeman, Kathy Sierra, Bert Bates

Publisher Resources

ISBN: 9788576084730