Q4. Write the following Programs in python:
1. Print your name, class, section in different lines in python.
2. Add 12 and 5 without variable
3. Subtract 3 and 4 with variable
4. WAP to calculate the square and cube of number 2 without variable
5. WAP to join your name using concatenate operator
Answers
Answered by
0
Answer:
1.
```
print("My Name")
print("Class")
print("Section")
```
2. `print(12+5)`
3.
```
a = 3
b = 4
print(b-a)
```
4.
```
print(2**2)
print(2**3)
```
5. `print("First Name" + " " + "Last Name")`
Similar questions