Created
March 21, 2025 10:58
-
-
Save codepediair/32a8d2fc2c08e38418ed3b8a53df0b7f to your computer and use it in GitHub Desktop.
happy nowroz python code
This file contains hidden or 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
@echo off & python -x "%~f0" %* & goto :eof | |
# ========================================================== | |
# one way to place python script in a batch file | |
# place python code below (no need for .py file) | |
# ========================================================== | |
import sys | |
import time | |
from random import randint | |
for i in range(1,100): | |
print('') | |
space = '' | |
for i in range(1,1000): | |
count = randint(1, 100) | |
while(count > 0): | |
space += ' ' | |
count -= 1 | |
if(i%10==0): | |
print(space + 'π Happy Nowroz!') | |
elif(i%9 == 0): | |
print(space + "π") | |
elif(i%5==0): | |
print(space +"π") | |
elif(i%8==0): | |
print(space + "π±") | |
elif(i%7==0): | |
print(space + "πΊ") | |
elif(i%6==0): | |
print(space + "Happy Nowroz! πΆ") | |
else: | |
print(space + "πΉ") | |
space = '' | |
time.sleep(0.2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment