We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4649366 commit d1a2dafCopy full SHA for d1a2daf
Classwork/codingClass1.py
@@ -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
21
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