Skip to content

Commit

Permalink
validation from circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArne committed May 26, 2021
1 parent 85cff64 commit 75bc5e1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions example/lectures/2020/kmom03/assignment3.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
Om de gör det byt plats på dem, annars skriv ut vilket/vilka av talen som inte finns i listan.
"""
import random
l = [0,15,1,6,8,2,4,7]
l = [0, 15, 1, 6, 8, 2, 4, 7]

number = random.randint(0,10)
number2 = random.randint(0,10)
number = random.randint(0, 10)
number2 = random.randint(0, 10)
print(l)
found = False
try:
Expand Down
2 changes: 1 addition & 1 deletion example/lectures/2020/kmom03/slicing.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
How slicing works with step
"""
numbers = [0,1,2,3,4]
numbers = [0, 1, 2, 3, 4]

START = 0
END = 5
Expand Down
2 changes: 1 addition & 1 deletion example/lectures/2020/kmom03/sort.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Implementation of bubblesort
"""
l = [2,5,1,0,3]
l = [2, 5, 1, 0, 3]
print(l)
n = len(l)
for j in range(n-1):
Expand Down
2 changes: 1 addition & 1 deletion example/lectures/2020/kmom05/find_movies.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def search_movies(movies):
movies_tuple = (
("Baby Driver", "2017", "Edgar Wright"),
("Scott Pilgrim vs. the world", "2010", "Edgar Wright"),
("Thor: Ragnarok", "2017", "Taika Waititi"),
("Thor: Ragnarok", "2017", "Taika Waititi"),
("What we do in the shadows", "2014", "Taika Waititi"),
("Tucker and Dale vs Evil", "2010", "Eli Craig"),
)
Expand Down
4 changes: 3 additions & 1 deletion example/lectures/2020/kmom06/shoppinglist.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""
Add items to a shoppinglist
"""
# pylint: disable=inconsistent-return-statements

def read_file(filename):
"""
Read content from file
Expand All @@ -10,7 +12,7 @@ def read_file(filename):
return fd.read()
except FileNotFoundError:
print("You are missing the file")
return
return ""



Expand Down

0 comments on commit 75bc5e1

Please sign in to comment.