In python prompt the user for a height. If the height is less than…

Question Answered step-by-step In python prompt the user for a height. If the height is less than… In python prompt the user for a height. If the height is less than 0, keep prompting the user for a valid height. Print a pattern of & and % signs and a number using the height. The pattern should end with a & sign and a number stating the number of characters in the line. The height corresponds to how many lines the output prints. For example, if the height is 4, there should be 4 lines printed, etc. Each line should end with an & sign followed by the character number in each line. Each line has two more characters than the last line. For example line 1 has 1 character, line 2 has 3 characters, line 3 has 5 characters, and so on. The output should look like this. ex 1)Enter a height: 4&1&%&3&%&%&5&%&%&%&7 ex 2) Enter a height: 5&1&%&3&%&%&5&%&%&%&7&%&%&%&%&9 Computer Science Engineering & Technology Python Programming COMPUTER SCIENCE 20 Share QuestionEmailCopy link Comments (0)