Question: Find two indexes from a list whose values are summed up to a predefined target number. Input: A list of integers and a target number....

Continue reading...# Challenge

Various code challenges for you to complete

## Challenge: Find Median in Linear Time

Question: A straightforward way to find a median from a list of numbers would be to first sort the list and then pick the middle element....

Continue reading...## Challenge: Diamond

Question: Create a function to print a diamond with the pattern shown in the example below. The function has one input, n, an integer that controls...

Continue reading...## 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...

Continue reading...## 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...

Continue reading...## 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...

Continue reading...