Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesson 7 Exercise 2 issue #958

Open
PscheidtLucas opened this issue May 22, 2024 · 2 comments
Open

Lesson 7 Exercise 2 issue #958

PscheidtLucas opened this issue May 22, 2024 · 2 comments
Labels
bug Something isn't working as intended

Comments

@PscheidtLucas
Copy link

Describe the bug
In lesson 7, I did the requested exercise but it didn't work, instead of identifying that my square is in the position (100,100), it says that it is in (1000, 1000)

To Reproduce
Steps to reproduce the bug:

  1. Go to lesson 7, second exercise: Draw squares at different positions.
  2. Write this code:
    func run():
    for n in 3:
    position += Vector2(100, 100)
    draw_rectangle( 100, 100)
    position += Vector2(100, 100)

Expected behavior
This code should work but it does not.

Screenshots
image

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

  • Operating System: Windows 10
  • Browser: OperaGX
@PscheidtLucas PscheidtLucas added the bug Something isn't working as intended label May 22, 2024
@PscheidtLucas
Copy link
Author

If I try to use a var to define the function the program don't even let me run it.
image

@Bradx
Copy link

Bradx commented Jul 23, 2024

in the above screenshot, I think the course is looking for a real number instead of the calculation. Try replacing your values with real numbers. This one had me hung up until I simplified it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

2 participants