5PM Python Level 2
5PM Python Level 2
We started Birdie pygame project. Homework: Memorize how to load an image into Pygame project. Memorize how to scale an image into Pygame project. Memorize how to draw an image into PygameRead More...
We started Birdie pygame project. Homework: Memorize how to load an image into Pygame project. Memorize how to scale an image into Pygame project. Memorize how to draw an image into PygameRead More...
We continued with Birdie project. We added 2nd bird and make bird flaps. We added a function to make flipping of bird images/costumes to make the code cleaner. Homework: Make the secondRead More...
We went over the Test result. We improved FoodRecommendation program We make the program not case sensitive so it will accept 'ChIneSe' for instance. We make the program able to detect duplication.Read More...
We improved "FoodRecommendation.py" We stopped duplication of food. We made the program not case sensitive. We learned about Python Dictionary. Homework Create a python file ‘May18_Homework_Dictionary.py’ Create an empty dictionary called “food_prices”.Read More...
We went over the concept of Object Oriented Language by introducing the concept of Class. We created a class called Bird. The Bird class has the following properties: x and y coordinatesRead More...
We went over Python Dictionary again. We learned how to find if an element is inside a dictionary. We learned how to find if an element is NOT inside a dictionary byRead More...
We reviewed homework: Made bird can go to the left and right depending on "direction" variable. We enhanced Bird class: We moved drawing bird to screen into inside Bird.update() function. We movedRead More...