You are on page 1of 3

Assignment : 2

Here are some steps that will help you in getting your assignment done with
much ease and comfort in 4 steps:

Step 1: Start with an Outline

Step 2: Introduction

Step 3: Body of the Assignment

Step 4: Conclusion

Task:

Instruction :

a) Explain with suitable examples and diagrams wherever required.


b) Your assessment should be submitted in either MS Word or PDF format.
c) Please include a title, your student ID and name with your submission.
d) Your name should also be included as a footnote, with page numbers in
your document.
e) The Assignment should be submitted on AGAM LMS on the deadline as
mentioned by the instructor/coordinator.
1) Accept two numbers from the user and calculate multiplication,
addition, subtraction, division

2) Accept two numbers from the user and calculate floor division,
exponentiation, division(remainder)

3) Display float number with 3 decimal places using print()

4) With the help of python code show basic variable assignment


statement in Python
Hint: Multiple assignments

5) Write a Python program to show the following data and display


below data using string.format() method
Name = Jetking
Course = Python
Mode = Online
courseFees = 3000
BatchTime = 7 to 9

6) What is the output of the following code?


var= "Jetking Python"
print(var[2::-1])

7) Which operator has higher precedence in the following list


a) % Modulus
b) & BitWise AND
c) **, Exponent
d) > Comparison

8) What is the output of the following


a = 100 / 5 * (3 + 5) * 8 + 20

9) What is the output of the following code.


10) Take 2 inputs from user and check :
a) all are equal
b) any of two are equal
Hint: use and , or

11) Take two number and check whether the sum is:
a) greater than 10
b) less than 10
c) equal to 10

You might also like