Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusschajris committed Aug 14, 2024
1 parent f254b50 commit 911b724
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions copy_content.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
with open('names.txt', 'r') as file:
content = file.read()
4 changes: 4 additions & 0 deletions count_lines.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
with open('names.txt', 'r') as file:
lines = file.readlines()

print("Hay " + str(len(lines)) + " lineas en el archivos")
Empty file added empty.txt
Empty file.
10 changes: 10 additions & 0 deletions names.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Emma
Agus
Abril
Zoe
Juana
Clara
Magui
Eva
Paloma
Bren

0 comments on commit 911b724

Please sign in to comment.