diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 0a6d4b0..a427f8d 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,6 +2,8 @@ + + \ No newline at end of file diff --git a/buga.py b/buga.py deleted file mode 100644 index 87f478f..0000000 --- a/buga.py +++ /dev/null @@ -1,18 +0,0 @@ -# 10 функций для учета заказов -def get_total(price, count): return price * count -def apply_tax(amount): return amount * 1.2 -def get_discount(amount): return amount * 0.9 if amount > 1000 else amount -def format_item(item): return item.strip().capitalize() -def is_valid_count(count): return count > 0 -def check_limit(amount): return amount < 100000 -def get_status(is_paid): return "Оплачено" if is_paid else "Ожидает" -def calc_shipping(weight): return weight * 50 -def get_info(id, item): return f"Заказ #{id}: {item}" -def final_report(res): print(f"Итог: {res} руб.") - -if __name__ == "__main__": - # Пример вызова - price = get_total(100, 5) - with_tax = apply_tax(price) - final_report(with_tax) -