Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env python
"""
Simple food kiosk application for Python 2/3 migration testing.

This is a verification test to demonstrate repo access, linting, and PR creation.
"""


def greet_customer(name="Customer"):
"""Greet a customer at the food kiosk."""
return "Welcome to the Food Kiosk, {}!".format(name)


def calculate_total(items):
"""Calculate total price for food items."""
total = 0
for item in items:
total += item.get('price', 0)
return total


if __name__ == "__main__":
print(greet_customer("Alice"))

sample_items = [
{'name': 'Burger', 'price': 8.99},
{'name': 'Fries', 'price': 3.49},
{'name': 'Drink', 'price': 2.99}
]

total = calculate_total(sample_items)
print("Total: ${:.2f}".format(total))
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
flake8>=6.0.0
black>=23.0.0
pylint>=2.17.0