Wednesday, July 6, 2016

Happy sallah python code (Eid Mubarak!)

Hello there,

Muslims around the world do celebrate Eid al-Fitr or Eid al-Adha/Eid al-Kabir yearly. So if you are a muslim python programmer, how do you use python to wish your colleagues "Happy Eid", "Happy Sallah", "Eid Mubarak!"?

Well this will depend on your creativity and experience.

In this post, I will shear some simple python scripts with you to share with your families and friends on any Eid day.

Option 1

# Happy sallah python program
print ("Happy sallah! \n") * 10 

Option 2

# my Barka Da Sallah for you all
for i in range(rows):
    print ('Barka Da Sallah!' + ' '*(rows-i-1) + '*'*(2*i+1))

Option 3

Try some coding on your own as an exercise?

Eid Mubarak!

1 comment: