30 Oct Friday Evening Python Homework 10.26.
Posted at 17:28h in PMCA Friday Python CCC 0 Comments
Create a Tank object which have the attributes of:
- x position and
- y position
The object also have a method:
- move (direction, steps)
Using __init__ to Initial the tank to make sure it start from x position of 0 and y position of 0
Print out the tank’s current x and y position after each move.
Sorry, the comment form is closed at this time.