Computer Science, asked by mubashirayaz123, 7 days ago

How we print diamond shape on python

Answers

Answered by chakladershreyasi
1

Answer:

Pattern - 6: Diamond Shaped Pattern

Pattern - 6: Diamond Shaped Patternrows = int(input("Enter the number of rows: "))

Pattern - 6: Diamond Shaped Patternrows = int(input("Enter the number of rows: "))# It is used to print the space.

Pattern - 6: Diamond Shaped Patternrows = int(input("Enter the number of rows: "))# It is used to print the space.k = 2 * rows - 2.

Pattern - 6: Diamond Shaped Patternrows = int(input("Enter the number of rows: "))# It is used to print the space.k = 2 * rows - 2.# Outer loop to print number of rows.

Pattern - 6: Diamond Shaped Patternrows = int(input("Enter the number of rows: "))# It is used to print the space.k = 2 * rows - 2.# Outer loop to print number of rows.for i in range(0, rows):

Pattern - 6: Diamond Shaped Patternrows = int(input("Enter the number of rows: "))# It is used to print the space.k = 2 * rows - 2.# Outer loop to print number of rows.for i in range(0, rows):# Inner loop is used to print number of space.

Pattern - 6: Diamond Shaped Patternrows = int(input("Enter the number of rows: "))# It is used to print the space.k = 2 * rows - 2.# Outer loop to print number of rows.for i in range(0, rows):# Inner loop is used to print number of space.for j in range(0, k):

Pattern - 6: Diamond Shaped Patternrows = int(input("Enter the number of rows: "))# It is used to print the space.k = 2 * rows - 2.# Outer loop to print number of rows.for i in range(0, rows):# Inner loop is used to print number of space.for j in range(0, k):print(end=" ")

hope this helps u ✍️♥️

Answered by srigowribudidha0
5

Answer:

Pattern - 6: Diamond Shaped Pattern

  • rows = int(input("Enter the number of rows: "))
  • # It is used to print the space.
  • k = 2 * rows - 2.
  • # Outer loop to print number of rows.
  • for i in range(0, rows):
  • # Inner loop is used to print number of space.
  • for j in range(0, k):
  • print(end=" ")
Similar questions