Essentially I would like to split my answer after the decimal point to create two strings. So for example if my answer is 2.743
, I would like to create a string for 2
, and a string for .743
.
I want the answer from fiveDivide
to print as one answer, and the decimal points I need to add some more equations to, so I can print another answer. The output will be something like this:
The number of 5KG Bags is: (fiveDivide),
The number of 1KG Bags is:
Here is a copy of the code I have so far:
radius = int(input("\nPlease enter the radius of the area: "))
if radius <= 75 and radius >= 1:
circleArea = 3.1416 * (radius ** 2)
circleKilos = circleArea / 100
print("The KGs required is: ", circleKilos)
fiveDivide = circleKilos / 5