Skip to content

Lesson 6, practice 4 approved even though function only has one parameter #1215

@grazingbuffalo

Description

@grazingbuffalo

Describe the bug
I ran the code and was told the practice was completed successfully even though my code looks like this:

func draw_rectangle(length):
	move_forward(length)
	turn_right(90)
	move_forward(length)
	turn_right(90)
	move_forward(length)
	turn_right(90)
	move_forward(length)
	turn_right(90)

the important part is that I'm missing the height argument for the function.

To Reproduce

  1. go to lesson 6, practice part 4 and paste the code as above.
  2. run the code
  3. the lesson should now be marked as completed even though the code is wrong.

Expected behavior
an error when the code is ran because there is not two arguments for the defined function.

Information about your device (please complete the following information):

  • Operating System: linux
  • Browser: firefox

gdquest-1769683256352.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions