Skip to content

Commit d1a2daf

Browse files
committed
classwork
1 parent 4649366 commit d1a2daf

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

Classwork/codingClass1.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# VARIABLES AND DATA TYPES
2+
3+
4+
# x = 10
5+
# y = x
6+
# print (x, y)
7+
# print (type(x), type(y))
8+
# print (id(x),id(y))
9+
10+
11+
#operators
12+
13+
#1. remainder operator
14+
# a = float(input("Enter first number: "))
15+
# b = float(input("Enter second number: "))
16+
# print(a % b)
17+
18+
19+
#2. relational operations
20+
# a = float(input("Enter first number: "))
21+
# b = float(input("Enter second number: "))
22+
# print(a > b)
23+
24+
25+
#3. logical operations
26+
a = float(input("Enter a: "))
27+
b = float(input("Enter b: "))
28+
c = float(input("Enter c: "))
29+
print("a and b: ",(a and b))
30+
print("a or b: ",(a or b))
31+
print("a and b or c: ",(a and b or c))

0 commit comments

Comments
 (0)