-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1
More file actions
37 lines (27 loc) · 766 Bytes
/
1
File metadata and controls
37 lines (27 loc) · 766 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
35
36
37
# Basic Mathematical Operations
# 1. Assign two numbers
num1 = 5
num2 = 10
# 2. Perform basic mathematical operations
# 2.1 Addition
addition = num1 + num2
# 2.2 Subtraction
subtraction = num1 - num2
# 2.3 Multiplication
multiplication = num1 * num2
# 2.4 Division
division = num1 / num2
# 3. Display the results
print("Results:")
print("Addition:", addition)
print("Subtraction:", subtraction)
print("Multiplication:", multiplication)
print("Division:", division)
# Task 2: Create a Personalized Greeting
# 2. Assign first name and last name
first_name = "Deepak"
last_name = "kumar"
# 2. Concatenate into full name
full_name = first_name + " " + last_name
# 3. Print personalized greeting
print("Hello, " + full_name + "! Welcome to Python programming.")