daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print "1. English/Angol"
  2. print "2. Hungarian/Magyar"
  3. nyelv = int(input("Choose a language(1,2): "))
  4.  
  5. if nyelv == 1:
  6.     e = int(input("Gimme a year: "))
  7.     h = int(input("Gimme a month: "))
  8.     n = int(input("Gimme a day: "))
  9.  
  10.     if h > 12:
  11.         print "That date doesn't exist."
  12.  
  13.     elif e % 4 == 0:
  14.         h = 2
  15.         n = 29
  16.         print "\nThat date exist.\nThis date is", e,". february", n,"."
  17.     elif h == 1:
  18.         n <= 31
  19.         print "\nThat date exist.\nThis date is", e,". january", n,"."
  20.  
  21.     elif h == 2:
  22.         n <= 28
  23.         print "\nThat date exist.\nThis date is", e,". february", n,"."
  24.  
  25.     elif h == 3:
  26.         n <= 31
  27.         print "\nThat date exist.\nThis date is", e,". march", n,"."
  28.  
  29.     elif h == 4:
  30.         n <= 30
  31.         print "\nHelyes datum.\nEz a datum", e,". april", n,"."
  32.  
  33.     elif h == 5:
  34.         n <= 31
  35.         print "\nHelyes datum.\nEz a datum", e,". may", n,"."
  36.  
  37.     elif h == 6:
  38.         n <= 30
  39.         print "\nHelyes datum.\nEz a datum", e,". june", n,"."
  40.  
  41.     elif h == 7:
  42.         n <= 31
  43.         print "\nThat date exist.\nThis date is", e,". july", n,"."
  44.  
  45.     elif h == 8:
  46.         n <= 31
  47.         print "\nThat date exist.\nThis date is", e,". august", n,"."
  48.  
  49.     elif h == 9:
  50.         n <= 30
  51.         print "\nThat date exist.\nThis date is", e,". september", n,"."
  52.     elif h == 10:
  53.         n <= 31
  54.         print "\nThat date exist.\nThis date is", e,". october", n,"."
  55.  
  56.     elif h == 11:
  57.         n <= 30
  58.         print "\nThat date exist.\nThis date is", e,". november", n,"."
  59.     elif h == 12:
  60.         n <= 31
  61.         print "\nThat date exist.\nThis date is", e,". december", n,"."
  62.  
  63. if nyelv == 2:
  64.  
  65.     e = int(input("Add meg az evet: "))
  66.     h = int(input("Add meg a honapot: "))
  67.     n = int(input("Add meg a napot: "))
  68.  
  69.     if h > 12:
  70.         print "Helytelen datum"
  71.  
  72.     elif e % 4 == 0:
  73.         h = 2
  74.         n = 29
  75.         print "\nHelyes datum.\nEz a datum", e,". februar", n,"."
  76.     elif h == 1:
  77.         n <= 31
  78.         print "\nHelyes datum.\nEz a datum", e, "januar", n,"."
  79.  
  80.     elif h == 2:
  81.         n <= 28
  82.         print "\nHelyes datum.\nEz a datum", e,". februar", n,"."
  83.  
  84.     elif h == 3:
  85.         n <= 31
  86.         print "\nHelyes datum.\nEz a datum", e,". marcius", n,"."
  87.  
  88.     elif h == 4:
  89.         n <= 30
  90.         print "\nHelyes datum.\nEz a datum", e,". aprilis", n,"."
  91.  
  92.     elif h == 5:
  93.         n <= 31
  94.         print "\nHelyes datum.\nEz a datum", e,". majus", n,"."
  95.  
  96.     elif h == 6:
  97.         n <= 30
  98.         print "\nHelyes datum.\nEz a datum", e,". junius", n,"."
  99.  
  100.     elif h == 7:
  101.         n <= 31
  102.         print "\nHelyes datum.\nEz a datum", e,". julius", n,"."
  103.  
  104.     elif h == 8:
  105.         n <= 31
  106.         print "\nHelyes datum.\nEz a datum", e,". augusztus", n,"."
  107.  
  108.     elif h == 9:
  109.         n <= 30
  110.         print "\nHelyes datum.\nEz a datum", e,". szeptember", n,"."
  111.  
  112.     elif h == 10:
  113.         n <= 31
  114.         print "\nHelyes datum.\nEz a datum", e,". oktober", n,"."
  115.    
  116.  
  117.     elif h == 11:
  118.         n <= 30
  119.         print "\nHelyes datum.\nEz a datum", e,". november", n,"."
  120.  
  121.     elif h == 12:
  122.         n <= 31
  123.         print "\nHelyes datum.\nEz a datum", e,". december", n,"."
RAW Paste Data
Top