Write a python script that asks the user to input an integer


Python Assignment

Write a Python script that asks the user to input an integer and then a character. Use those values to print the character in the following pattern:

r r r r r

r r r r

r r r

r r

r

r

r r

r r r

r r r r

r r r r r

The entry for this output was the integer 5 and the letter r. Your output could use any integer or letter to print this pattern. Notice there is an empty space between the two patterns, this should be included in your code.

To accept character input in Python version 2, use the following statement:

ch = raw_input("Enter a character to print: ")

The response should include a reference list. Double-space, using Times New Roman 12 pnt font, one-inch margins, and APA style of writing and citations.

Solution Preview :

Prepared by a verified Expert
Python Programming: Write a python script that asks the user to input an integer
Reference No:- TGS02958057

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)