Getting started wit ipython
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
Answers:
Yes, it is correct.
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
25-05-19, 12:09 p.m.
T.Dhivya
2.0 - float
2.5
2.0 - float
2.48
which is different from mine
2 - int
2.5
2 - int
2.48
For python2 it will give 2.0 and python3 it will give 2.
25-05-19, 12:14 p.m.
pratham920
The solution slide is been updated but not yet reflected.