Instagram
youtube
Facebook

Q) Star pattern program in python

Answer:

This program prints a star pattern in python. It is a simple program that takes input from the user and prints a star pattern.

for i in range(4):
   for j in range(4):
      if i + j <= 3:
         print("*", end="")
      else:
         print(" ", end="")
         print()

  • 597 Views

FAQ

High frequency noise at solving differential equa…

High Frequency Noise in Solving Differential Equations

When solving differential equations, high…

Sms code not coming from pyrogram for new accounts

Troubleshooting SMS Code Not Coming from Pyrogram for New Accounts

Pyrogram is a popular Python …

How to use solve_ivp solve Partial Differential E…

Solving Partial Differential Equations with Spectral Methods using `solve_ivp`

The `solve_ivp` f…