-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
911b724
commit c831cc5
Showing
5 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
with open('w_names.txt', 'r') as file: | ||
w_lines = file.readlines() | ||
|
||
with open('m_names.txt', 'r') as file: | ||
m_lines = file.readlines() | ||
|
||
with open('m_names.txt', 'w') as file: | ||
for m_line, w_line in zip(m_lines, w_lines): | ||
file.write(m_line.strip() + " " + w_line) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
with open('names.txt', 'r') as file: | ||
content = file.read() | ||
# PUNTO 2 | ||
|
||
with open('w_names.txt', 'r') as file: | ||
content = file.read() | ||
|
||
with open('empty.txt', 'w') as file: | ||
file.write(content) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
with open('names.txt', 'r') as file: | ||
# PUNTO 1 | ||
|
||
with open('w_names.txt', 'r') as file: | ||
lines = file.readlines() | ||
|
||
print("Hay " + str(len(lines)) + " lineas en el archivos") | ||
print("Hay " + str(len(lines)) + " lineas en el archivos") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Alvaro | ||
Lautaro | ||
Roman | ||
Blur | ||
Waterdy | ||
Bauti | ||
Benicio | ||
Echu | ||
Jano | ||
Zeta |
File renamed without changes.