Question
For this task, a program need to be written that displays a big X. Imagine that you are working for a popular social media platform
For this task, a program need to be written that displays a big "X".
Imagine that you are working for a popular social media platform which has recently been acquired by a wealthy individual. The new owner has decided to pull you from working on core platform features so that you can instead work on branding. More specifically, you have been asked to program which displays a big "X".
Your program should first ask the user which character to draw the big "X" with. Next, it should ask for the size of the "X". Finally, it should display the "X" by displaying the appropriate characters as lines of output. For example:
# # # # # # # # # The above example shows an "X" of size 5 drawn using the character "#". Note that there are 5 lines, and each line is 5 characters wide. The "background" characters are simply spaces (i.e., the character you get when hitting the space bar).
You are guaranteed that the size of the "X" input by the user will be at least 3.
Hint: Consider using a nested loop in your solution. The outer loop repeats once per line, and the inner loop repeats once per character within the current line. .
#### Examples for testing
Use the examples below, as well as your own examples, to test your code. The output from your code should exactly match what is shown here.
##### Example run 1
```text Size: 5 Character: # # # # # # # # # # ```
##### Example run 2
```text Size: 4 Character: $ $ $ $ $ $ $ ```
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Heres the Python program that displays a big X based on user input Python def main Prompts user for ...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