-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathequality.py
More file actions
67 lines (54 loc) · 1.46 KB
/
Copy pathequality.py
File metadata and controls
67 lines (54 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# x = 10
# y = 20
# print("Number are equal", x == y)
# print("Number are greater", x > y)
# print("Number are Lesser", x < y)
# a = 435
# b = 5454
# c = 65
# if a < b and a < c:
# print("Smallest no is: ", a)
# elif b < c:
# print("Smallest no is: ", b)
# else:
# print("Smallest no is: ", c)
# # a = int(input("Enter the no"))
# # print(a)
# no = float(input("Enter to student no "))
# if(no >= 40):
# print("Student is passed with no: ", no )
# else:
# print("Student is fail:", no)
# age = int(input("Enter your age "))
# if(age >=18):
# print("Your are eligible to vote")
# else:
# print("You are not eligible")
# no = int(input("Enter a no to check even or odd: "))
# if(no % 2 == 0):
# print(no, " is even.")
# else:
# print(no, " is odd.")
# word1 = input("Enter first word ")
# word2 = input("Enter another word ")
# if word1 == word2:
# print("Words are equal")
# else:
# print("Words are not equal")
# salary1 = int(input("Enter employee1 salary: "))
# salary2 = int(input("Enter employee2 salary: "))
# if(salary1 > salary2):
# print("Employee 1 salary is greater")
# else:
# print("Employee 2 salary is greater")
# x = int(input("Enter a no to check range: "))
# if x >= 10 and x <= 50:
# print(no, " is given range")
# else:
# print(no, " is not given range")
year = int(input("Enter the year "))
if year % 4 == 0:
if(year % 400 == 0):
print("Year is leap")
else:
print("Year is not leap")