Anisyarani12

Program Python Zodiak

Apr 22nd, 2020
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. print ("=========================================")
  2. print ("==========PROGRAM PYTHON ZODIAK==========")
  3. print ("=============ANISYA MAHARANI=============")
  4. print ("===============X TKJ 3 - 8===============")
  5. print ("=========================================")
  6.  
  7.  
  8. day = int(input("Masukkan Tanggal Lahir: "))
  9. month = input("Masukkan Bulan Lahir(contoh: maret,april,dst.): ")
  10. if month == 'desember':
  11. zodiak_syaa = 'Sagittarius' if (day < 22) else 'capricorn'
  12. elif month == 'januari':
  13. zodiak_syaa = 'Capricorn' if (day < 20) else 'aquarius'
  14. elif month == 'februari':
  15. zodiak_syaa = 'Aquarius' if (day < 19) else 'pisces'
  16. elif month == 'maret':
  17. zodiak_syaa = 'Pisces' if (day < 21) else 'aries'
  18. elif month == 'april':
  19. zodiak_syaa = 'Aries' if (day < 20) else 'taurus'
  20. elif month == 'mei':
  21. zodiak_syaa = 'Taurus' if (day < 21) else 'gemini'
  22. elif month == 'juni':
  23. zodiak_syaa = 'Gemini' if (day < 21) else 'cancer'
  24. elif month == 'juli':
  25. zodiak_syaa = 'Cancer' if (day < 23) else 'leo'
  26. elif month == 'agustus':
  27. zodiak_syaa = 'Leo' if (day < 23) else 'virgo'
  28. elif month == 'september':
  29. zodiak_syaa = 'Virgo' if (day < 23) else 'libra'
  30. elif month == 'oktober':
  31. zodiak_syaa = 'Libra' if (day < 23) else 'scorpio'
  32. elif month == 'november':
  33. zodiak_syaa = 'scorpio' if (day < 22) else 'sagittarius'
  34.  
  35. print("Zodiak Anda Adalah :",zodiak_syaa)
  36. print (">>>>>>>THANKS FOR USING MY PROGRAM<<<<<<<")
Advertisement
Add Comment
Please, Sign In to add comment