[SOLVED] BBM 103: Introduction to Programming Laboratory I Quiz 6

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon quiz6-fvwrk1.zip (81.4 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

 

Accept your 6th Quiz.

Problem1: Diamond-Printing Program using Recursion

Write a program that prints the following diamond shape corresponding to the input value using recursion.

Take to input value as an argument shown as below:

>>> python3 quiz6-1.py 5

*

***

*****

*******

*********

*******

*****

***

*

Problem2: Diamond-Printing Program using Comprehension.

Write a program that prints the following diamond shape corresponding to the input value using comprehension. There is no restrictions on using comprehension methods.(list,set or dictionary comprehension).

Take to input value as an argument shown as below:

>>> python3 quiz6-2.py 5

*

***

*****

*******

*********

*******

*****

***

*

1

Fall 2020

BBM 103: Introduction to Programming Laboratory I

Notes

  • Do not miss the submission deadline.
  • Save all your work until the quiz is graded.
  • You can ask your questions via Piazza and you are supposed to be aware of everything discussed on Piazza.
  • You must submit your work with the file hierarchy as stated below:

→<quiz6-1.py>

→<quiz6-2.py>

2

  • quiz6-fvwrk1.zip