#!/usr/bin/python3
# --- 001 > U5W2P1_Task4_w1

def solution(f, places):
    x = f
    y = f"{x:.{places}f}"  
    return str(y)

if __name__ == "__main__":
    print('----------start------------')
    # a =2
    # x = 12.3456
    # y = f"{x:.{a}f}" 
    # print("ttt", y)
    f = 12.345
    places = 2
    print(solution( f, places ))
    print('------------end------------')

#!/usr/bin/python3
# --- 001 > U5W2P1_Task4_w1

def solution(f, places):
    x = f
    y = f"{x:.{places}f}"  
    return str(y)

if __name__ == "__main__":
    print('----------start------------')
    # a =2
    # x = 12.3456
    # y = f"{x:.{a}f}" 
    # print("ttt", y)
    f = 12.345
    places = 2
    print(solution( f, places ))
    print('------------end------------')

#!/usr/bin/python3 # --- 001 > U5W2P1_Task4_w1 # a =2 # x = 12.3456 # y = f"{x:.{a}f}" # print("ttt", y)