# coding: utf-8
import os

os.system('clear')
print('\n 税込価格計算   \n')
print('------------------------')
price = int(input('価格 '))
x = input('食料品: 1  その他: 2 \n')
if x == "1":
	ans = round(price*1.08)  #四捨五入 偶数丸め
	print('\n税込価格:', ans, '円\n')
elif x == "2":
	ans = round(price*1.1)
	print('\n税込価格:', ans, '円\n')
else:
	print('\n入力ミス\n')
実行結果