Learn-python-3/lessons/python-errors/exercises/type-errors

i thought this was a bit funny…

i solved the linked challenge like this and COULD NOT figure out what they actually wanted for a MIIINUTE…

# Area Calculator 📏

import math

base = 20
height = 30
area = base * height / 2
area = str(area)

print("The triangle area is " , area)

length = 2
width = 12
area = length * width
area = str(area)

print("The rectangle area is" + area )
    
radius = 36
area = math.pi * radius * radius
area = str(area)
    
print("The circle area is", area)

i have solved it though… but when i did i giggled… out loud…
thought this might be worth a giggle

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.