1print(format(432.456, ".2f"))
2
3>> 432.45
4
5print(format(321,".2f"))
6
7>> 321.00
1decimal = input("Input decimal number: ") #123.456
2
3# split 123.456 by dot = ['123', '456']
4after_coma = decimal.split('.')[1]
5
6# because only index 1 is taken then '456'
7print(after_coma) # '456'
8