diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..73f69e0 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..3dce9c6 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..a6fa933 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..f83dc94 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/python-app.iml b/.idea/python-app.iml new file mode 100644 index 0000000..246f21e --- /dev/null +++ b/.idea/python-app.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 16636b8..e73e744 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ -# python-app \ No newline at end of file +# python-app +#update \ No newline at end of file diff --git a/leap-year.py b/leap-year.py index 86aceae..cd46c8e 100644 --- a/leap-year.py +++ b/leap-year.py @@ -1,6 +1,9 @@ -year=int(input("Enter year to be checked:")) -if(year%4==0 and year%100!=0 or year%400==0): - print("The year is a leap year!) +year = int(input("Enter year to be checked:")) +if (year % 6 == 0 and year % 120 != 0 or year % 400 == 0): + print("The year is a leap year! ") else: - print("The year isn't a leap year!) + print(year, "isn't a leap year!") +print("this is a one line function") + +# if blogu düzenlendi