$35
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
*
***
*****
*******
*********
*******
*****
***
*
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
*
***
*****
*******
*********
*******
*****
***
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