-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
34 lines (29 loc) · 652 Bytes
/
app.py
File metadata and controls
34 lines (29 loc) · 652 Bytes
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
7rtygehrhfbend
iughfvbend sc
ueghdbcnx
name = "Alice" # String
age = 30 # Integer
height = 1.75 # Float
is_student = True # Boolean
print(f"Name: {name}, Age: {age}, Height: {height}, Student: {is_student}")
3. Basic Arithmetic Operations:
Python
num1 = 10
num2 = 5
addition = num1 + num2
subtraction = num1 - num2
multiplication = num1 * num2
division = num1 / num2
modulus = num1 % num2 # Remainder
print(f"Addition: {addition}")
print(f"Subtraction: {subtraction}")
print(f"Multiplication: {multiplication}")
print(f"Division: {division}")
print(f"Modulus: {modulus}")
4. Conditional Statements (if-else):
123
56
4512
963
84512
84512