Skip to content

Commit

Permalink
bugfix in yaml file and change to hedy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraTSD committed May 3, 2021
1 parent 6664b4d commit 1dc2576
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions coursedata/level-defaults/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@
fruit is ['banana', 'apple', 'cherry']
randomfruit is fruit[random]
print(randomfruit)
13:
13:
start_code: |-
youarestillhere is False
areyoustillhere is input('Are you still here? yes or no?')
Expand All @@ -370,7 +370,7 @@
print('That is correct!')
if goodanswer is False:
print('That is wrong! ' 5-i ' attempts left')
14:
14:
start_code: |-
youarestillhere is False
areyoustillhere is input('Are you still here? yes or no?')
Expand Down
8 changes: 4 additions & 4 deletions coursedata/level-defaults/nl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
fruit is ['banaan', 'appel', 'kers']
randomfruit is fruit[random]
print(randomfruit)
13:
13:
start_code: |-
jebenternog is False
benjeernog is input('ben je er nog? ja of nee?')
Expand All @@ -405,7 +405,7 @@
print('Dat is goed!')
if goedantwoord is False:
print('Dat is fout! Nog ' 5-i ' pogingen over')
14:
14:
start_code: |-
jebenternog is False
benjeernog is input('ben je er nog? ja of nee?')
Expand All @@ -429,10 +429,10 @@
- name: "Or"
explanation: "Or is dus of. Minimaal 1 van de twee tussen de or moet goed zijn. Allebei goed mag ook."
example: "if 3+2 is 5 or 2+2 is 4"
demo_code: "|-
demo_code: |-
antwoord1 is input('hoeveel is 3+2?')
antwoord2 is input('hoeveel is 2+2?')
if antwoord1 is 5 or antwoord2 is 4:
print('Je hebt minimaal 1 antwoord goed!')
else:
print('Beide antwoorden zijn fout!')
print('Beide antwoorden zijn fout!')
4 changes: 2 additions & 2 deletions hedy.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ def change_list_item(self, args):

# level 14
def andcondition(self, args):
return all_arguments_true(args)
return are_all_arguments_true(args)
def orcondition(self, args):
return all_arguments_true(args)
return are_all_arguments_true(args)
# level 15
def comment(self, args):
return True
Expand Down

0 comments on commit 1dc2576

Please sign in to comment.