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

Sample Solution:
Python Code:
Sample Output:
*** * * * * * * * * * * ***
Flowchart :
For more Practice: Solve these Related Problems:
- Write a Python program to print the letter 'O' pattern with a hollow center using loops.
- Write a Python program to generate 'O' ensuring that the top and bottom rows are filled and the sides are bordered by asterisks.
- Write a Python program to construct the pattern for 'O' by printing asterisks in a circular formation using conditionals.
- Write a Python program to create a scalable 'O' pattern by adjusting the number of spaces and asterisks based on input size.
Go to:
Previous: Write a Python program to print alphabet pattern 'M'.
Next: Write a Python program to print alphabet pattern 'P'.
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.