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

30 $

SKU: [Solved] BBM 103: Introduction to Programming Laboratory I Quiz 6 Category: Tag:

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

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] BBM 103: Introduction to Programming Laboratory I Quiz 6
30 $