Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ITGK2020
borgeha forelesningskode
Commits
b36095b7
Commit
b36095b7
authored
Nov 20, 2020
by
Børge Haugset
Browse files
siste uke
parent
5fc35d45
Changes
1
Hide whitespace changes
Inline
Side-by-side
uke46/foppal.py
View file @
b36095b7
...
...
@@ -13,7 +13,7 @@ def importResults(filnavn): # Oppgave a)
- håndtere unntak
'''
try
:
with
open
(
filnavn
,
'r'
,
encoding
=
'utf
-
8'
)
as
f
:
with
open
(
filnavn
,
'r'
,
encoding
=
'utf8'
)
as
f
:
alt
=
f
.
readlines
()
for
i
in
range
(
len
(
alt
)):
alt
[
i
]
=
alt
[
i
].
strip
()
...
...
@@ -94,9 +94,9 @@ def showResults(analyzed): # Oppgave e)
print
(
'Her skal jeg gjøre noe helt annet enn jeg gjør nå!'
)
# Linjene under kan du kjøre for å sjekke koden din:
#showResults(analyseResults(results))
#
showResults(analyseResults(results))
''' Eksempel på kjøring:
''' Eksempel på kjøring:
>>> savePoints(team_data)
Team information saved to Points.txt.
'''
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment