Posted at 02:58h
in
Uncategorized
by admin
Question 1:
Create a loop between 1 to 20.
Print “fizz” if the number is divisible by 3
Print “bizz” if the number is divisible by 5
Print “fizzbizz” if a number is divisible by both 3 and 5.
Otherwise, print the number itself.
Hint:
You could use...
Question 1:
Create a loop between 1 to 20.
Print “fizz” if the number is divisible by 3
Print “bizz” if the number is divisible by 5
Print “fizzbizz” if a number is divisible by both 3 and 5.
Otherwise, print the number itself.
Hint:
You could use...
Question:
Problem Description
You are trying to pass the time while at the optometrist. You notice there is a grid of four numbers:
1
2
3
4
You see lots of mirrors and lenses at the optometrist, and wonder how flipping the grid horizontally or vertically would change the grid. Specifically, a...
Question:
We have made class explosion and weapon which showed you how to load different image to switch costumes.
1. Please made a class Planet, it will contains following methods:
__init__(self) - It initials the Planet from a random centerx position, and top = -1000
Since planets has 3...
Posted at 02:39h
in
Uncategorized
by admin
Question:
Create an animation such as the below git image. In the animation, make sure you create a new concentric circle whenever the space key is pressed. Also, make sure you erase the entire concentric circles when the R key is pressed on the keyboard.
...
Posted at 02:36h
in
Uncategorized
by admin
Question:
You are given a string ‘s’ consisting of lowercase English letters. A duplicate removal consists of choosing two adjacent and equal letters and removing them.
We repeatedly make duplicate removals on s until we no longer can.
Return the final string after all such duplicate removals have...