Here is the code ...
a=4 b=8.0 if a and a >0: a=a*int(b) print \"Value:\",a
The desired o/p should be 32. i am also getting the sam
'a' must be a string in your code:
>>> a = 4 >>> b = 8 >>> a * b 32 >>> a = "4" >>> a * b '44444444' >>> int(a) * b 32