Computer Science, asked by AKARYA97955, 11 months ago

hey i want to convert 46.0 to 46.00 in python program

Answers

Answered by gauravguptagtm
0

Answer:

n=46.0

print("{:.2f}."format(n))

Explanation:

For better understanding , you need to learn string formatting.

here .2f denote the length of block after point is two

Similar questions