75766dbfdc
- Created CommandPocPage.tsx with basic layout structure - Added POC-specific TypeScript interfaces and types - Implemented basic UI components: PocHeader, PocMessageList, PocMessageBubble, PocCommandInput, PocStatusBar - Added /command-poc route to Router.tsx - Set up component folder structure following PRD specifications 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
792 B
Python
29 lines
792 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Simple calculator for testing input/output
|
|
"""
|
|
|
|
def main():
|
|
print("🧮 Simple Calculator")
|
|
print("-" * 20)
|
|
print("Enter expressions like: 2 + 3, 10 * 5, etc.")
|
|
print("Type 'quit' to exit")
|
|
|
|
while True:
|
|
try:
|
|
expression = input("Calculate: ").strip()
|
|
|
|
if expression.lower() == 'quit':
|
|
print("👋 Goodbye!")
|
|
break
|
|
|
|
# Simple evaluation (unsafe in production, but fine for POC)
|
|
result = eval(expression)
|
|
print(f"Result: {result}")
|
|
|
|
except Exception as e:
|
|
print(f"❌ Error: {e}")
|
|
print("Please enter a valid mathematical expression")
|
|
|
|
if __name__ == "__main__":
|
|
main() |