#Pt12. 函数专项训练(进阶2)

函数专项训练(进阶2)

题目描述

复制以下代码,看它是否可以正常运行,会有什么报错,如何修改正确

def square(length):
angle = 90
i = 0
while i < 4:
    forward(length)
    right(angle)
    i = i + 1
    
square(100)