0

I have a function which return float value for example 4.0 or 4.8

I want if the function returns 4.0 then it should print 4 only but if it return any other value example- 4.1, 4.3, 4.8 then it should print as it is.

I know this can be done through conditions or by making custom functions but i wanted to know is there any builtin function in python by which i can do this.

Chandella07
  • 2,089
  • 14
  • 22

0 Answers0