Skip to content

Instantly share code, notes, and snippets.

@Omay238
Created June 7, 2023 16:11
Show Gist options
  • Save Omay238/18400b14f476d18d865793a9992ccbb7 to your computer and use it in GitHub Desktop.
Save Omay238/18400b14f476d18d865793a9992ccbb7 to your computer and use it in GitHub Desktop.
def main():
for i in range(1, 6):
print("*" * i)
print("\n\n")
for i in range(1, 6):
print((" " * (5 - i)) + ("*" * i))
print("\n\n")
for i in range(1, 6):
print("*" * (i * 2 - 1))
print("\n\n")
for i in range(1, 6):
print(" " * (5 - i) + "*" * (i * 2 - 1))
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment