Skip to content

Commit 65bf99f

Browse files
committed
updates for the updated modules article
1 parent f6cbab8 commit 65bf99f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎example/functions/energy_calculation.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ def calculate_cost(energy, price_per_kwh=78.04):
1717
"""
1818
cost = energy * price_per_kwh / 100
1919
return cost
20+
21+
if __name__ == "__main__":
22+
print("Test av calculate energy:")
23+
print(calculate_energy(800))
24+
print("name: " + __name__)

‎example/functions/main.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@
4343
print(emil_string)
4444
print(andreas_string)
4545
print(mikael_string)
46-
print(kenneth_string)
46+
print(kenneth_string)

0 commit comments

Comments
 (0)