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


Forgot your password?
 
Document Actions

slides10-ex4.py

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

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()
lista.sort()
f = open("nomes-ordenados.txt", "w")
f.writelines(lista)
f.close()

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: