3 + 4 # shift enter will execute the cell code7
Sep-Dec 2025 batch, Vikrant Patil
Date: 04 Oct 2025
© Vikrant Patil
this is markdown. in this just type text
'lets write a poem\nwhich has some lines\nwhich can be be like rhyme\nthats ..this when i end the rhyme'
“” is called as new line character “ is called tab
--------------------------------------------------------------------------- NameError Traceback (most recent call last) Cell In[41], line 1 ----> 1 x # because it is not a number, it looks like text ...but it is not text (because there is no quote!) NameError: name 'x' is not defined
--------------------------------------------------------------------------- NameError Traceback (most recent call last) Cell In[46], line 1 ----> 1 y NameError: name 'y' is not defined
'lets write a poem\nwhich has some lines\nwhich can be be like rhyme\nthats ..this when i end the rhyme'
'lets write a poem\nwhich has some lines\nwhich can be be like rhyme\nthats ..this when i end the rhyme'
--------------------------------------------------------------------------- NameError Traceback (most recent call last) Cell In[63], line 1 ----> 1 odss NameError: name 'odss' is not defined
dictionary
--------------------------------------------------------------------------- IndexError Traceback (most recent call last) Cell In[77], line 1 ----> 1 odds[6] IndexError: list index out of range
[{'name': 'Poorva', 'profession': 'Engineer', 'place': 'Pune'},
{'name': 'Samiha', 'profession': 'Microbiologist', 'place': 'Dapoli'}]
Problem 1.1 In mathematical notation, we can write an equation like v = u + at where v is final velocity of object and u is initial velocity, a is acceleration. (usually it is understood that we are multiplying a and t when a and t are written side by side. But that does not work in Python. You need to put * operator between a and t to make python understand that it need to multiply them! Make use of python to find out velocity of an object after 5 seconds, which is thrown straight up at velocity of 100m/s. Assume acceleration due to gravity is 9.8 m/s\(^2\)
Problem 1.2
Use python to find total income if the person has five income sources giving income of 123330, 250000, 45555, 232130, 11123
Problem 1.3
Total amount after compound interest is calculated using formula P (1 + r/n)\(^n\)\(^t\) For this formula, P is the principal amount, r is the rate of interest per annum as fraction of 100, n denotes the number of times in a year the interest gets compounded, and t denotes the number of years. Use python to compute compound interest for principle amount of 26780, rate of interest 7%, interest is compounded 4 quarterly, and amount is invested for 5 years.
Problem 1.4
Have a look at following python statements. ::
x = 10
y = x
x = x + 10
What will be value of y?
Problem 1.5
What will be value of x after executing all statements?::
x = 10
y = x
y = 25