Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print ("=========================================")
- print ("==========PROGRAM PYTHON ZODIAK==========")
- print ("=============ANISYA MAHARANI=============")
- print ("===============X TKJ 3 - 8===============")
- print ("=========================================")
- day = int(input("Masukkan Tanggal Lahir: "))
- month = input("Masukkan Bulan Lahir(contoh: maret,april,dst.): ")
- if month == 'desember':
- zodiak_syaa = 'Sagittarius' if (day < 22) else 'capricorn'
- elif month == 'januari':
- zodiak_syaa = 'Capricorn' if (day < 20) else 'aquarius'
- elif month == 'februari':
- zodiak_syaa = 'Aquarius' if (day < 19) else 'pisces'
- elif month == 'maret':
- zodiak_syaa = 'Pisces' if (day < 21) else 'aries'
- elif month == 'april':
- zodiak_syaa = 'Aries' if (day < 20) else 'taurus'
- elif month == 'mei':
- zodiak_syaa = 'Taurus' if (day < 21) else 'gemini'
- elif month == 'juni':
- zodiak_syaa = 'Gemini' if (day < 21) else 'cancer'
- elif month == 'juli':
- zodiak_syaa = 'Cancer' if (day < 23) else 'leo'
- elif month == 'agustus':
- zodiak_syaa = 'Leo' if (day < 23) else 'virgo'
- elif month == 'september':
- zodiak_syaa = 'Virgo' if (day < 23) else 'libra'
- elif month == 'oktober':
- zodiak_syaa = 'Libra' if (day < 23) else 'scorpio'
- elif month == 'november':
- zodiak_syaa = 'scorpio' if (day < 22) else 'sagittarius'
- print("Zodiak Anda Adalah :",zodiak_syaa)
- print (">>>>>>>THANKS FOR USING MY PROGRAM<<<<<<<")
Advertisement
Add Comment
Please, Sign In to add comment