And below Python concepts are used to print that patterns

  • For Loop
  • While Loop
  • if..else

1). Program to print half pyramid pattern using star(*) in Python

solid right half diamond pattern program in C

Output

right half diamond pattern using star in c

2). Program to print left half diamond pattern using star(*) in Python

solid left half diamond pattern program in c

Output

3). Program to print full diamond pattern using star(*) in Python

solid diamond using star program in c

Output