Python - Input and Output
How would you format the number 7.12345 to show only two decimal places using format()?
"{:.2f}".format(7.12345)What is the output?
How would you format the number 7.12345 to show only two decimal places using format()?
"{:.2f}".format(7.12345)What is the output?
:.2f15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions