Skip to content

Instantly share code, notes, and snippets.

@codepediair
Created March 21, 2025 10:58
Show Gist options
  • Save codepediair/32a8d2fc2c08e38418ed3b8a53df0b7f to your computer and use it in GitHub Desktop.
Save codepediair/32a8d2fc2c08e38418ed3b8a53df0b7f to your computer and use it in GitHub Desktop.
happy nowroz python code
@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