วันพฤหัสบดีที่ 17 กันยายน พ.ศ. 2558

Lab4x : leapyear

def setup():
    leap(1976)

def leap(number): #leap year
  if (number%4==0 and number%100!=0) or (number%4==0 and number%100==0 and number%400==0):
    print("Year :",number,"a Leap Year")
  else:
    print("Year :",number,"not a Leap Year")

 
 
setup() # call setup

ไม่มีความคิดเห็น:

แสดงความคิดเห็น

commit เพิ่มเติม : เพื่ม userstory, bookmark

>>  add userstory ทำการเพิ่ม userstory ใน functional tests >>  add bookmark for user เพิ่มระบบ Bookmark โดยการสร้าง model ขึ...