6 февраля 2026
Файл
Untitled.jpg · 14 КБ · нажмите — покажем
Untitled.jpg · 14 КБ · нажмите — покажем
Hi! Any ideas on how to get around this problem?
Error:
Code execution timed out. Please check your code for infinite loops or long-running operations.
i am doing day 3 exercises on devosome and i am sure that my code is okay, I tested with vscode and I get exactly the expected output.
AuditorCode
# Prompt for base and height
base = float(input("Enter base: "))
height = float(input("Enter height: "))
# Calculate area (multiplying by 0.5 automatically results in a float)
area = 0.5 * base * height
print(f"The area of the triangle is {area}")
# Prompt for three side lengths
side_a = float(input("Enter side a: "))
side_b = float(input("Enter side b: "))
side_c = float(input("Enter side c: "))
# Calculate perimeter and cast to float to match the 12.0 requirement
perimeter = side_a + side_b + side_c
print(f"The perimeter of the triangle is {perimeter}")
Vic Jeremy JeremyGot this error on devosome.com on Exercise Tuples
In the last task you are only printing the len. You are also supposed to print the family members