Hi, I am a highschool student in auckland new zealand trying to write a code for a area and perimeter calculator for a square rectangle and a circle. i dont even know how to code so im asking you guys for help

i stole this code from somewhere and it gives me syntax errors everytime i run it.
maybe you guys can help me understand why

i stole this code from somewhere and it gives me syntax errors everytime i run it.
maybe you guys can help me understand why
chose_range: while true: decision = str(input("Would you like to calculate Area or Perimeter?")) if (decision == 'area'): decision = area break elif (decision == 'perimeter'): decision = perimeter break else: print("please insert a proper input") return decision x = chose_range()