TORONTO KIDS COMPUTER CLUB | Aurora Saturday 16:30 Python Homework 20.07.25.
18029
post-template-default,single,single-post,postid-18029,single-format-standard,ajax_fade,page_not_loaded,,no_animation_on_touch,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Aurora Saturday 16:30 Python Homework 20.07.25.

29 Jul Aurora Saturday 16:30 Python Homework 20.07.25.

Question 1:

We have learn how to make the picture bounce from left to right and right to left. Please make change of the program we made in the class to make the picture bounce up and down as well.

Hint: We made a variable named ‘xspeed’ to make picture move and change the direction when the image hits left or right edge of the window. You may create another variable called ‘yspeed’ to make picture move up and down.


Question 2:

Please make some modifications to the above code. Make ball appears on the top when the ball reaches the bottom, and appears at bottom when the ball reaches the top.

No Comments

Sorry, the comment form is closed at this time.