Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hello guys, I need help with a python program. ---------------------------------

ID: 3625665 • Letter: H

Question

Hello guys, I need help with a python program.

---------------------------------

We are using python shell

Python 2.5

--------------------------------------------

Create A sprite an image you’ve created of found on internet. Make your sprite capable of following the mouse pointer.

Create several other sprites(Squares, rectangles, etc.)that will move from the top of the screen to the bottom starting in different X positions. X positions. You should have at least 3. Put these in one group separate from your image.

If your image collides with one of the falling objects, the sprite should disappear(start over again at the top of the screen) and play some sound (you determine the sound)

Create a label that will keep track of the number of collisions that occur between your image and the other objects. The label should start off 0 and then add 1 every time there is a collision.

Add Comment at the beginning of your program

Explanation / Answer

Python is a clear and powerful object-oriented programming language, comparable to Perl, Ruby, Scheme, or Java. Some of Python's notable features: Uses an elegant syntax, making the programs you write easier to read. Is an easy-to-use language that makes it simple to get your program working. This makes Python ideal for prototype development and other ad-hoc programming tasks, without compromising maintainability. Comes with a large standard library that supports many common programming tasks such as connecting to web servers, searching text with regular expressions, reading and modifying files. Python's interactive mode makes it easy to test short snippets of code. There's also a bundled development environment called IDLE. Is easily extended by adding new modules implemented in a compiled language such as C or C++. Can also be embedded into an application to provide a programmable interface. Runs on many different computers and operating systems: Windows, MacOS, many brands of Unix, OS/2, ... Is free software in two senses. It doesn't cost anything to download or use Python, or to include it in your application. Python can also be freely modified and re-distributed, because while the language is copyrighted it's available under an open source license. Some programming-language features of Python are: A variety of basic data types are available: numbers (floating point, complex, and unlimited-length long integers), strings (both ASCII and Unicode), lists, and dictionaries. Python supports object-oriented programming with classes and multiple inheritance. Code can be grouped into modules and packages. The language supports raising and catching exceptions, resulting in cleaner error handling. Data types are strongly and dynamically typed. Mixing incompatible types (e.g. attempting to add a string and a number) causes an exception to be raised, so errors are caught sooner. Python contains advanced programming features such as generators and list comprehensions. Python's automatic memory management frees you from having to manually allocate and free memory in your code.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote