1. Write function that will make a rectangle out consisting of any character

  • Make_character_rectangle(height, width, char)
  • Should make height rows of width instances of char

For example, if height = 5 and width = 3, and char = '*', a 5 X 3 rectangle of asterisks would be created, e.g.,

***
***
***
***
***

2. Write a function that makes a parallelogram of characters in a similar way

Make_character_parallelogram(height, width, char)

The first line of the parallelogram should be height-1 spaces from the left margin, the second line should be height-2 spaces, and so on until the last line where there are 0 spaces before the first '*'

For example, the following would be produced by the command: character_parallelogram(5,6,'*')

____******
___******
__******
_******
******

3. Write a timer that prints out every one tenth of a second. It should use the format: Hours:Minutes:Seconds.fraction

For example, 00:00:00.0, 00:00:00.1, 00:00:00.2, etc.

Clarification: use the module time and the function time.sleep

time.sleep(1) ## will pause for one second
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.