-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2.py
More file actions
23 lines (18 loc) · 1.13 KB
/
Copy path2.py
File metadata and controls
23 lines (18 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
number1 = float(input("Enter the first Number: "))
number2 = float(input("Enter the second Number: "))
print(f"The first number is equal to the second number? {number1 == number2}")
print(f"the first number is greater than the second number? {number1 > number2}")
print(f"the first number is greater than the second number? {number1 < number2}")
print(f"the first number is greater than the second number? {number1 <= number2}")
print(f"the first number is greater than the second number? {number1 > number2}")
print(f"the first number is greater than the second number? {number1 >= number2}")
number1 = int(input("Enter the first number: "))
number2 = int(input("Enter the second number: "))
print(f"Bitwise AND of the two numbers: {number1 & number2}")
print(f"Bitwise AND of the two numbers: {number1 | number2}")
print(f"Bitwise AND of the two numbers: {~(number1)}")
print(f"Bitwise AND of the two numbers: {~(number2)}")
number1 = float(input())
number2 = float(input())
print("The first number is equal to the second number: {number1 == number2}")
print("the first number is greater than the second number: {number >= number2}")