num1 = 3.1425467389
num2 = 10.2903948
# Previous
print('num1 is', num1, ' and num2 is', num2)
# Format method
print('num1 is {0:.3f} and num2 is {1:.3f}'.format(num1, num2))
# using f-strings
print(f'num1 is {num1:.4f} and num2 is {num2}')
참고 : https://www.youtube.com/watch?v=yVGSeRcQfyI&list=PL4cUxeGkcC9idu6GZ8EU_5B6WpKTdYZbK&index=7