saving . . . saved Getting started wit ipython has been deleted. Getting started wit ipython has been hidden .
Getting started wit ipython
Title
Question
In the video for Exercise 3 I am getting a different solution what they posted as solution 3
I am getting the following answers
round(2.48) - 2
round(2.48,1) - 2.5
round(2.484) - 2
round(2.484,2) - 2.48

Is my answer correct or wrong???

Python-3.4.3 Getting-started-with-IPython 07-08 min 0-10 sec 25-05-19, 11:37 a.m. T.Dhivya

Answers:

Yes, it is correct.
25-05-19, 11:47 a.m. pratham920
then in the video solution  3 is different from mine...
25-05-19, 11:49 a.m. T.Dhivya
It is same only, what is the difference?
25-05-19, 11:58 a.m. pratham920
given solution is 
2.0 - float
2.5
2.0 - float
2.48
which is different from mine
2 - int
2.5
2 - int
2.48
25-05-19, 12:09 p.m. T.Dhivya
For python2 it will give 2.0 and python3 it will give 2.
The solution slide is been updated but not yet reflected. 
25-05-19, 12:14 p.m. pratham920

Login to add comment


Log-in to answer to this question.