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

$25

File Name: BBM_103:_Introduction_to_Programming_Laboratory_I_Quiz_6.zip
File Size: 527.52 KB

SKU: [Solved] BBM 103: Introduction to Programming Laboratory I Quiz 6 Category: Tag:
5/5 - (1 vote)

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
$25