Nomor Cetak Hingga 2 Tempat Desimal di F String Python
variable = 77.05750066143399
# Print variable upto 2 decimal places using f-string
print(f"Variable upto 2 decimal places : {variable:.2f}")
################# Output #################
Variable upto 2 decimal places : 77.06
##########################################
# don't forget to upvote :)
Saurabh Zinjad