5 lines
243 B
Python
5 lines
243 B
Python
bill_price = int(input('Please enter bill total price : '))
|
|
number_of_diners = int(input('Please enter diners number : '))
|
|
# round(数值, 小数点位数)
|
|
print('the price for each person is {0}'.format(round(bill_price/number_of_diners,2)))
|