AI-Powered Editor
Agent3 AI Active
87/100 Credits
main.py
Terminal
$ python main.py
Hello from AI-Powered Editor!
Agent3 AI is ready to assist you.
Ready for commands...

Agent3 AI Assistant

AI Credits: 87/100

Hello! I'm Agent3 AI, your coding assistant. I can help you write, debug, and optimize code. What would you like to work on today?

Can you help me write a function to sort a list of numbers?

Sure! Here's a Python function to sort a list of numbers using the built-in sorted function:

def sort_numbers(numbers):
    """Sort a list of numbers in ascending order."""
    return sorted(numbers)

# Example usage:
numbers = [3, 1, 4, 1, 5, 9, 2, 6]
sorted_numbers = sort_numbers(numbers)
print(sorted_numbers)  # Output: [1, 1, 2, 3, 4, 5, 6, 9]