Python: BOUNCING BALL Animation!!!

preview_player
Показать описание
Welcome to AnalystRising!!!

This episode will be looking at BOUNCING A BALL in Python. This is a step towards building incredible simulations and models that will make you become invaluable to anyone you work for.

This is Part 1 of 2:

Watch the video to help develop your skills

Subscribe for more!

This channel is about learning to code and analyse data in small bitesize amounts. As a result, larger projects come as a series which I put as a playlist. A link to some of my playlists can be found below.

Create PowerPoint Presentations Only Using Python

Build a Music Player using Python

Learn Regression Modelling from scratch

Basic graphing with Python

Building Network Graphs using Python

PATREON:
If you liked the tutorial then please feel free to make a donation on Patreon.
Just copy and paste the link below to go directly to my page.
Рекомендации по теме
Комментарии
Автор

Awesome vid/tut. I learned a lot from this one short project. Thanks again. I'll be checking out more of your stuff.

novicetech
Автор

How to make bouncing ball with physics? Like bouncing a ball up and down in real life

therealg
Автор

You refer to the tk.mainloop as being responsible for looping your program. This is incorrect, as the thing doing the looping is your infinite while loop. tk.mainloop is used to process events, and as you have no events, it is not needed. In fact, in your code, the the tk.mainloop call is actually unreachable and can be deleted.
At the end of your while loop, you have a pass statement that does nothing, and can be deleted.

gedtoon
Автор

couldn't you've just turned the ball 180 degrees when it hits a wall?

wendyb