Python Exercise: Print alphabet pattern P
24. Alphabet Pattern 'P'
Write a Python program to print the alphabet pattern 'P'.
Pictorial Presentation:

Sample Solution:
Python Code:
Sample Output:
**** * * * * **** * * *
Flowchart :

For more Practice: Solve these Related Problems:
- Write a Python program to print the letter 'P' pattern with a filled upper half and a vertical line on the left.
- Write a Python program to generate 'P' using nested loops and conditionals to manage the curve and stem.
- Write a Python program to construct the pattern for 'P' by controlling the output for the curved top and straight bottom.
- Write a Python program to design 'P' using string manipulation to ensure the top loop is closed and the vertical line is continuous.
Go to:
Previous: Write a Python program to print alphabet pattern 'O'.
Next: Write a Python program to print alphabet pattern 'R'.
Python Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.