Answered step by step
Verified Expert Solution
Question
1 Approved Answer
python only Q Search or enter website name 0? PA8 ICS 140-01 Computatio... Reading 4-ICS 140-01C What Is The Regression E Goal: To learn to
python only
Q Search or enter website name 0? PA8 ICS 140-01 Computatio... Reading 4-ICS 140-01C What Is The Regression E Goal: To learn to write Python code using nested for loops. Write Python code that uses nested for loops appropriately to draw the following pattern. The space between the two asterisks starts at 0 and increases by 2 columns with each row. The space from the left margin to the first asterisk starts at 8 in the first row and decreases by 1 column with each row Do not use the repetition operator on strings in any manner (for example, to get the spaces between the two *s) Store the number of rows in a variable (in upper-case letters), so simply by changing this value, it is possible to change the size of the shape There is no credit for writing a program that uses a sequence of 9 print statements to force each line. Grading Criteria 1. The code begins with the students name as a comment (2 point) 2. Meaningful comments (input, functionality, and output) appear before the first executable statement (2 point) The number of rows in a variable (in upper-case letters) (2 points), and utilized properly so simply by changing this value, it is possible to change the size of the shape (4 points) 3. 4. The nested for loop and associated code are properly structured (8 points). 5. The output is correct (6 points) 6. The program does not ask for or display anything not called for by the specifications or the sample interactions (2 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started