## Challenge: Rectangle

Question: Create a function to print a rectangle with the pattern shown below. The size of the rectangle is the input to the function. Answer: The key here is to separate the printing of the first and last row from the middle rows. 👍 Have fun while coding with Python! 👌 Please Subscribe to receive notifications on … Read more

## Challenge: Isosceles Triangle

Question: An isosceles triangle is a triangle with two sides of equal length. Given an input, print an isosceles triangle according to the examples below. You would have to find the pattern. Answer: The key here is finding the right number of spaces and asterisks (*) to print in each row. Then we can use … Read more

## Coding Python Without Installation

One easy way to code python without installing anything on your machine is to use Google Colab. Here is step-by-step instruction. Run your first python code in Google Colab 1. Go to https://colab.research.google.com/ and if you have not done so, sign in to your Google account using the Sign-in button at the top-right corner of … Read more

## Python Basic Controls

Print statement: If statement: If-then-else statement: For-loop statement: The third parameter in the range function is the step counter, by default it is 1. We can count backward by specifying step -1 While-loop statement Create a function 👍 Have fun while coding with Python! 👌 Please Subscribe to not miss any future posts 💬 If … Read more

## Challenge: Right Triangle

Question Print a right triangle with the size specified in the input. See the example below: Answer 👍 Have fun while coding with Python! 👌 Please Subscribe to receive notifications on future challenges. 💬 If you have any questions simply write a comment down below.