TORONTO KIDS COMPUTER CLUB | PMCA Saturday 17:00 homework
144

# PMCA Saturday 17:00 homework

## 28 SepPMCA Saturday 17:00 Python Homework 21.09.25.

Question: Continue with the code in the previous class, add code such that if the score reaches 50, then display text saying that the “Game is Over”, do not display any sprites along with the Game over test. Please use the below gif image as a...

## 23 SepPMCA Saturday 17:00 Python Homework 21.09.18.

Question: Modify the code that we did in the last class.  Instead of the enemy sprites appears randomly at any point on the screen, make the enemy sprite move from the top of the screen to the bottom of the screen as shown in the below...

## 15 SepPMCA Saturday 17:00 Python Homework 21.09.11.

Question: Create a new pygame window and then create 2 different types of sprites by the name of Player and Enemy. Make sure, you are able to move the Player using the keyboard arrow keys. Make sure you create atleast 10 different enemies sprite objects and only...

## 11 AugPMCA Saturday 17:00 Python Homework 21.08.07.

Question: Write a program that asks for the dimensions (in feet) of a rectangular room, and then calculates and displays the total amount of carpet needed to cover the room....

## 05 AugPMCA Saturday 17:00 Python Homework 21.07.31.

Question 1: Using input() function in python, get the firstname and lastname, then print a message with your firstname and lastname Question 2: Using the input() function in python, get two integers named num1 and num2. Print the addition, subtraction, multiplication and division of num1 and num2...

## 29 JulPMCA Saturday 17:00 Python Homework 21.07.24.

Question 1: Create two variables namely firstname and lastname. Assign them any value you like. Print the value of the variable firstname in one line and the value of the variable lastname in the next line. Make sure when you print the variables in idle, it looks...

## 13 JulPMCA Saturday 17:00 Python Homework 21.07.10.

Question 1: Create a string variable with value “12.56”, convert the string variable into a float variable using the float() function Question 2: Create a string variable with value “78.92”, convert the string variable into an integer type variable Question 3: Create a string variable with value “56”, convert the...

## 29 JunPMCA Saturday 17:00 Python Homework 21.06.26.

Question 1: Use float() to create a number from a string like '12.34'. Make sure the result is really a number! Question 2: Try using int() to create an integer from a decimal number like 56.78. Did the answer get rounded up or down? Question 3: Try using int() to...

## 24 JunPMCA Saturday 17:00 Python Homework 21.06.19.

Question 1: Using python convert 84 inches to cm, metres and feet. The formula to convert inches to cm, metres and feet is below: 1 inch = 2.54 cm 1 m = 39.3701 inch 1 feet = 12 inch Use the above formula to convert 84 inches...

## 19 JunPMCA Saturday 17:00 Python Homework 21.06.12.

Question 1: Write a program to solve the following question: Three people ate dinner at a restaurant and want to split the bill. The total is \$35.27, and they want to leave a 15 percent tip. How much should each person pay? Question 2: Write a program to...