Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Rdeisenroth committed Sep 30, 2024
1 parent 1bc1bfc commit e88e13c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions exercises/code/3_1_d_2_sol.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
prime : int = int(input("Gebe eine Zahl ein: "))
prime: int = int(input("Gebe eine Zahl ein: "))

isPrime : bool = True
isPrime: bool = True
if prime <= 1:
isPrime = False
else:
Expand Down
5 changes: 2 additions & 3 deletions exercises/code/fib_down.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
def fib_normal(n: int):
elements = [0, 1]
for i in range(n):
elements.append(elements[i] + elements[i+1])
elements.append(elements[i] + elements[i + 1])

for i in range(n):
# Man beachte hier das Element an der Stelle 0 wird hier nicht ausgegeben da n-i minimal 1 werden kann
print(elements[n-i])
print(elements[n - i])

fib_normal(10)

4 changes: 1 addition & 3 deletions exercises/code/fib_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def fib_normal(n: int):
x: str = input()
y: str = input()

def mod(a: int, b:int):
def mod(a: int, b: int):
return a % b


Expand All @@ -28,5 +28,3 @@ def mod(a: int, b:int):

elif x % 4 == 0:
...


0 comments on commit e88e13c

Please sign in to comment.