Skip to content
Open
Changes from 1 commit
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
7e64213
[Sync Iteration] python/hello-world/1
exercism-solutions-syncer[bot] Aug 15, 2025
cb2e0e3
[Sync Iteration] python/armstrong-numbers/1
exercism-solutions-syncer[bot] Aug 15, 2025
ff43466
[Sync Iteration] python/matrix/1
exercism-solutions-syncer[bot] Aug 15, 2025
52e18ab
[Sync Iteration] python/matrix/2
exercism-solutions-syncer[bot] Aug 15, 2025
079e739
[Sync Iteration] python/matrix/3
exercism-solutions-syncer[bot] Aug 15, 2025
fc88f8a
[Sync Iteration] python/matrix/4
exercism-solutions-syncer[bot] Aug 15, 2025
b521ba4
[Sync Iteration] python/two-fer/1
exercism-solutions-syncer[bot] Aug 15, 2025
5855f05
[Sync Iteration] python/two-fer/2
exercism-solutions-syncer[bot] Aug 15, 2025
28a2d3e
[Sync Iteration] python/raindrops/1
exercism-solutions-syncer[bot] Aug 15, 2025
16dfe77
[Sync Iteration] python/raindrops/2
exercism-solutions-syncer[bot] Aug 15, 2025
02c9816
[Sync Iteration] python/raindrops/3
exercism-solutions-syncer[bot] Aug 15, 2025
56f4cfe
[Sync Iteration] python/raindrops/4
exercism-solutions-syncer[bot] Aug 15, 2025
cfe664d
[Sync Iteration] python/high-scores/1
exercism-solutions-syncer[bot] Aug 15, 2025
f4356be
[Sync Iteration] python/little-sisters-vocab/1
exercism-solutions-syncer[bot] Aug 15, 2025
cb0c89b
[Sync Iteration] python/little-sisters-vocab/2
exercism-solutions-syncer[bot] Aug 15, 2025
120f2c1
[Sync Iteration] python/little-sisters-vocab/3
exercism-solutions-syncer[bot] Aug 15, 2025
497861e
[Sync Iteration] python/little-sisters-vocab/4
exercism-solutions-syncer[bot] Aug 15, 2025
559fea9
[Sync Iteration] python/little-sisters-vocab/5
exercism-solutions-syncer[bot] Aug 15, 2025
d886cda
[Sync Iteration] python/little-sisters-vocab/6
exercism-solutions-syncer[bot] Aug 15, 2025
9623271
[Sync Iteration] python/little-sisters-vocab/7
exercism-solutions-syncer[bot] Aug 15, 2025
c4d3bc8
[Sync Iteration] python/little-sisters-vocab/8
exercism-solutions-syncer[bot] Aug 15, 2025
9191a67
[Sync Iteration] python/meltdown-mitigation/1
exercism-solutions-syncer[bot] Aug 15, 2025
36c9309
[Sync Iteration] python/meltdown-mitigation/2
exercism-solutions-syncer[bot] Aug 15, 2025
28db9e9
[Sync Iteration] python/tisbury-treasure-hunt/1
exercism-solutions-syncer[bot] Aug 15, 2025
44d6e11
[Sync Iteration] python/tisbury-treasure-hunt/2
exercism-solutions-syncer[bot] Aug 15, 2025
16711a0
[Sync Iteration] python/tisbury-treasure-hunt/3
exercism-solutions-syncer[bot] Aug 15, 2025
b024f42
[Sync Iteration] python/tisbury-treasure-hunt/4
exercism-solutions-syncer[bot] Aug 15, 2025
c41d793
[Sync Iteration] python/tisbury-treasure-hunt/5
exercism-solutions-syncer[bot] Aug 15, 2025
9f4e269
[Sync Iteration] python/guidos-gorgeous-lasagna/1
exercism-solutions-syncer[bot] Aug 15, 2025
d09f718
[Sync Iteration] python/guidos-gorgeous-lasagna/2
exercism-solutions-syncer[bot] Aug 15, 2025
65a1046
[Sync Iteration] python/guidos-gorgeous-lasagna/3
exercism-solutions-syncer[bot] Aug 15, 2025
d5bcf97
[Sync Iteration] python/guidos-gorgeous-lasagna/4
exercism-solutions-syncer[bot] Aug 15, 2025
427158c
[Sync Iteration] python/guidos-gorgeous-lasagna/5
exercism-solutions-syncer[bot] Aug 15, 2025
87369a9
[Sync Iteration] python/guidos-gorgeous-lasagna/6
exercism-solutions-syncer[bot] Aug 15, 2025
ca55445
[Sync Iteration] python/guidos-gorgeous-lasagna/7
exercism-solutions-syncer[bot] Aug 15, 2025
60c8d2c
[Sync Iteration] python/ghost-gobble-arcade-game/1
exercism-solutions-syncer[bot] Aug 15, 2025
14e8f63
[Sync Iteration] python/ghost-gobble-arcade-game/2
exercism-solutions-syncer[bot] Aug 15, 2025
0e66f06
[Sync Iteration] python/ghost-gobble-arcade-game/3
exercism-solutions-syncer[bot] Aug 15, 2025
7cdd5c2
[Sync Iteration] python/ghost-gobble-arcade-game/4
exercism-solutions-syncer[bot] Aug 15, 2025
97f6792
[Sync Iteration] python/ghost-gobble-arcade-game/5
exercism-solutions-syncer[bot] Aug 15, 2025
22cf923
[Sync Iteration] python/ghost-gobble-arcade-game/6
exercism-solutions-syncer[bot] Aug 15, 2025
6967d82
[Sync Iteration] python/black-jack/1
exercism-solutions-syncer[bot] Aug 15, 2025
349db07
[Sync Iteration] python/black-jack/2
exercism-solutions-syncer[bot] Aug 15, 2025
bc6d700
[Sync Iteration] python/black-jack/3
exercism-solutions-syncer[bot] Aug 15, 2025
6447a5c
[Sync Iteration] python/black-jack/4
exercism-solutions-syncer[bot] Aug 15, 2025
2ebcb0d
[Sync Iteration] python/black-jack/5
exercism-solutions-syncer[bot] Aug 15, 2025
7da1bf7
[Sync Iteration] python/black-jack/6
exercism-solutions-syncer[bot] Aug 15, 2025
f413dfc
[Sync Iteration] python/black-jack/7
exercism-solutions-syncer[bot] Aug 15, 2025
1130c44
[Sync Iteration] python/black-jack/8
exercism-solutions-syncer[bot] Aug 15, 2025
b011fed
[Sync Iteration] python/inventory-management/1
exercism-solutions-syncer[bot] Aug 15, 2025
f2c10c0
[Sync Iteration] python/card-games/1
exercism-solutions-syncer[bot] Aug 15, 2025
249c8e9
[Sync Iteration] python/card-games/2
exercism-solutions-syncer[bot] Aug 15, 2025
1bb6676
[Sync Iteration] python/card-games/3
exercism-solutions-syncer[bot] Aug 15, 2025
843aa2d
[Sync Iteration] python/card-games/4
exercism-solutions-syncer[bot] Aug 15, 2025
ec80803
[Sync Iteration] python/card-games/5
exercism-solutions-syncer[bot] Aug 15, 2025
6b05e47
[Sync Iteration] python/chaitanas-colossal-coaster/1
exercism-solutions-syncer[bot] Aug 15, 2025
7329290
[Sync Iteration] python/chaitanas-colossal-coaster/2
exercism-solutions-syncer[bot] Aug 15, 2025
712e0d3
[Sync Iteration] python/making-the-grade/1
exercism-solutions-syncer[bot] Aug 15, 2025
7037a8a
[Sync Iteration] python/making-the-grade/2
exercism-solutions-syncer[bot] Aug 15, 2025
5c8d0bf
[Sync Iteration] python/making-the-grade/3
exercism-solutions-syncer[bot] Aug 15, 2025
518f496
[Sync Iteration] python/making-the-grade/4
exercism-solutions-syncer[bot] Aug 15, 2025
392925c
[Sync Iteration] python/making-the-grade/5
exercism-solutions-syncer[bot] Aug 15, 2025
6d543aa
[Sync Iteration] python/making-the-grade/6
exercism-solutions-syncer[bot] Aug 15, 2025
97907e6
[Sync Iteration] python/little-sisters-essay/1
exercism-solutions-syncer[bot] Aug 15, 2025
3097c83
[Sync Iteration] python/little-sisters-essay/2
exercism-solutions-syncer[bot] Aug 15, 2025
0226113
[Sync Iteration] python/little-sisters-essay/3
exercism-solutions-syncer[bot] Aug 15, 2025
163bb78
[Sync Iteration] python/currency-exchange/1
exercism-solutions-syncer[bot] Aug 15, 2025
23e83d7
[Sync Iteration] python/currency-exchange/2
exercism-solutions-syncer[bot] Aug 15, 2025
e5573c7
[Sync Iteration] python/cater-waiter/1
exercism-solutions-syncer[bot] Aug 15, 2025
6015c3f
[Sync Iteration] python/cater-waiter/2
exercism-solutions-syncer[bot] Aug 15, 2025
9afca83
[Sync Iteration] python/cater-waiter/3
exercism-solutions-syncer[bot] Aug 15, 2025
1ecb97c
[Sync Iteration] python/locomotive-engineer/1
exercism-solutions-syncer[bot] Aug 15, 2025
c360aab
[Sync Iteration] go/hello-world/1
exercism-solutions-syncer[bot] Aug 15, 2025
1c9a40c
[Sync Iteration] go/lasagna/1
exercism-solutions-syncer[bot] Aug 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Sync Iteration] python/guidos-gorgeous-lasagna/2
  • Loading branch information
exercism-solutions-syncer[bot] committed Aug 15, 2025
commit d09f71810ebc38cd86383139c0752e295e7b4d5c
31 changes: 31 additions & 0 deletions solutions/python/guidos-gorgeous-lasagna/2/lasagna.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# TODO: define the 'EXPECTED_BAKE_TIME' constant
EXPECTED_BAKE_TIME = 40

def bake_time_remaining(time_actual):
"""Calculez le temps de cuisson restant.

:param elapsed_bake_time : temps de cuisson entier déjà écoulé.
:return : int temps de cuisson restant dérivé de 'EXPECTED_BAKE_TIME'.

Fonction qui prend les minutes réelles de lasagne dans le quatre comme
un argument et ajouter combien de minutes la lasagne a encore besoin de cuire
basé sur le `EXPECTED_BAKE_TIME`.
"""
return EXPECTED_BAKE_TIME - time_actual

# TODO: define the 'preparation_time_in_minutes()' function
# and consider using 'PREPARATION_TIME' here

def preparation_time_in_minutes(number_of_layers):
return number_of_layers * 2

# TODO: define the 'elapsed_time_in_minutes()' function

def elapsed_time_in_minutes(number_of_layers, elapsed_bake_time):
"""
Return elapsed cooking time.

This function takes two numbers representing the number of layers & the time already spent
baking and calculates the total elapsed minutes spent cooking the lasagna.
"""
return preparation_time_in_minutes(number_of_layers) + elapsed_bake_time