Ministério da Educação
Brasil um país de todos
Personal tools
Navigation
Log in


Forgot your password?
 
Document Actions

slides10-ex5.py

by Cicero Garrozi last modified 2014-06-03 07:04

Click here to get the file

Size 1 kB - File type text/python-source

File contents

f = open("nomes.txt", "r")
lista = f.readlines()
f.close()
linhas3a5 = lista[2:5]
f = open("nomes-linhas3a5.txt", "w")
f.writelines(linhas3a5)
f.close()

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: