Skip to content
Snippets Groups Projects
Commit 4f42a2e4 authored by wep23441's avatar wep23441
Browse files

tests pycov

parent 7ee16298
Branches
No related tags found
No related merge requests found
......@@ -22,8 +22,7 @@ def cast_division_spell(a, b):
def conjure_magic_circle_area(radius):
return math.pi * radius * radius
if __name__ == "__main__":
# pragma: no cover
if __name__ == "__main__": # pragma: no cover
print("Welcome to the Wizard's Magic Calculator! 🧙‍♂️✨")
print("Choose your spell:")
print("1. Summon dragons 🐉")
......@@ -32,20 +31,17 @@ if __name__ == "__main__":
print("4. Cast division spell ✨")
print("5. Conjure magic circle area 🔮")
choice = 2 # input("Enter your choice (1/2/3/4/5): ")
choice = input("Enter your choice (1/2/3/4/5): ")
if choice == "5":
# pragma: no cover
radius = float(input("Enter the radius of your magic circle: "))
result = conjure_magic_circle_area(radius)
print("\n✨ Magic complete! ✨")
print(f"Circle area: {result:.2f} spells.")
else:
# pragma: no cover
a = float(input("Enter the first magical number: "))
b = float(input("Enter the second magical number: "))
# pragma: no cover
if choice == "1":
result = summon_dragons(a, b)
elif choice == "2":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment