Skip to content

Instantly share code, notes, and snippets.

View katorly's full-sized avatar
🎯
Focusing

Katorly katorly

🎯
Focusing
View GitHub Profile
/**
* Copyright (c) 2023 Katorly (https://github.com/katorly)
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
object textutils {
/**
@katorly
katorly / leap_year.py
Created November 19, 2021 13:58
Check whether a particular year is leap year or not.
while(True):
x = int(input("Please input a particular year:"))
if x % 100 == 0:
if x % 400 == 0:
print(x,"is a leap year!")
elif x % 4 == 0:
print(x,"is a leap year!")
else:
print(x,"is not a leap year!")
@katorly
katorly / test
Created October 6, 2021 13:28
test
test