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
dados em arquivos e arrays
você está aqui 123
divida a string
Eis a versão atual do programa:
highest_score = 0
result_f = open("results.txt")
for line in result_f:
if oat(line) > highest_score:
highest_score = oat(line)
result_f.close()
print("The highest score was:")
print(highest_score)
Escreva o código extra requerido para aproveitar o método split() e a atribuição múltipla para
criar as variáveis chamadas name e score. Então, use-as para completar o programa,am de
encontrar a pontuação mais alta.
Uma string
contida
em uma
variável
(pote).
UC Programming - Finalizado.indb 123 01/03/2016 15:12:20
124 Capítulo 4
encontre a pontuação alta
for line ...
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