Created
June 7, 2023 16:11
-
-
Save Omay238/18400b14f476d18d865793a9992ccbb7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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