Skip to content

Commit 531803a

Browse files
committed
exercise 1 python 5
1 parent 78b8bed commit 531803a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

notebook/Python-5.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@
13081308
"name": "python",
13091309
"nbconvert_exporter": "python",
13101310
"pygments_lexer": "ipython2",
1311-
"version": "2.7.10"
1311+
"version": "2.7.12"
13121312
}
13131313
},
13141314
"nbformat": 4,

src/tides.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
while True: # This will keep looping until we break out.
1818
# Here we use a try/except block to try to read the data as normal
1919
# and to break out if unsuccessful - ie when we reach the end of the file.
20-
try:
20+
try: # se arriva un errore nella sezione try passa direttamente alla except
2121
# Read the next line
2222
line = tide_file.readline()
2323

@@ -26,7 +26,7 @@
2626

2727
# If we do not have 5 words then it must be blank lines at the end of the file.
2828
if len(words) != 5:
29-
break
29+
break
3030
except:
3131
# If we failed to read a line then we must have got to the end.
3232
break

0 commit comments

Comments
 (0)