Question: Please help me with the code, and do the extra credit in a seprate program, and inculding the comments. It is a python coding problem

Please help me with the code, and do the extra credit in a seprate program, and inculding the comments.  Please help me with the code, and do the extra credit
in a seprate program, and inculding the comments. It is a python
coding problem Python Problem 3: Arrows Write a program that prompts the
user for a number of columns, and them prints the patter as
It is a python coding problem
Python

Problem 3: Arrows Write a program that prompts the user for a number of columns, and them prints the patter as seen below. You cannot assume that the user will supply positive numbers - if they misbehave you should re-prompt them until they do give you a positive number. Note that your program only has to run one time, but multiple runnings of the program are shown below: How many columns 3 How many columns? 5 How many columns 7 10 How many columns? 10 How many columns? -5 Invalid entry, try again! How many columns? -2 Invalid entry. try again! How many columns? 6 Some hints: . Use separate while loops to make your program easier to understand. One while loop can be used for data validation (negative numbers), another can be used for one half of the arrow structure, and a third can be used for the second halt Break down your program into smaller chunks! To produce the pattern shown it will be helpful to create a few accumulator variables. For example, look at the number of spaces before the star character in each line. Do you see a pattern that can be simulated using a while loop? Extra Credit for Problem 3 For extra credit, update your program so that it handles both left and right arrows. Validate your input in the same way you validate the number of columns. You will cam 3 bonus points if successfully implemented. Here are a few sample runnings: How many columns 5 Direction? (1)eft or right. 1 Is C o ws. Valldate your input in the same way you validate the number of columns. You will cam 3 bonus points if successfully implemented. Here are a few sample runnings: How many columna? 5 Direction? (l)eft or right: 1 How many columns? 5 Direction? (1)eft or rights r How many columns? 3 Direction? (Jett OE ()ghti apple Invalid entry. try again! How many columns 74 Direction? (1)eft or right: 1

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!