Question: ECE 2990: CI: Introduction to Programming in Python Assignment 2 Spring 2023 Due: 10:10 a.m., Monday, Feb. 08 1. Exercise 3-2 in the textbook. Name

 ECE 2990: CI: Introduction to Programming in Python Assignment 2 Spring

ECE 2990: CI: Introduction to Programming in Python Assignment 2 Spring 2023 Due: 10:10 a.m., Monday, Feb. 08 1. Exercise 3-2 in the textbook. Name the script as "assignment2 p1.py". 2. This exercise should be done using only the statements and other features we have learned so far. Complete the following functions in a script named as "assignment2 p2.py". a) Define a function called rhombus () that draws (i.e., prints) a rhombus like the following (Note that there is a whitespace between any two asterisks in each row), where the height of the rhombus is 5 (rows) and the symbol used to draw it is asterisk. b) Define another function called draw shombus (h,s) that takes two parameters to draw a rhombus of height h using symbol s (e.g.' '\$', 's', and '?', etc.). c) Make sure docstrings are added to both functions. d) Call both functions in your script. The arguments passed to draw_rhombus (h,s) are 7 and ' '. Submission: The submission is a zip file named as "assignment2.zip", which should contain the scripts "assignment2 p1.py" and "assignment2 p2.py

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!