It can do some basic coding. The code syntax highlighting looks cool.
> Do a quick sort in python
> Here's an example of a quicksort implementation in Python:
def quicksort(array):
if len(array) <= 1:
return array
pivot = array[0]
less = [x for x in array[1:] if x <= pivot]
greater = [x for x in array[1:] if x > pivot]
return quicksort(less) + [pivot] + quicksort(greater)
> Do a quick sort in python
> Here's an example of a quicksort implementation in Python:
def quicksort(array): if len(array) <= 1: return array pivot = array[0] less = [x for x in array[1:] if x <= pivot] greater = [x for x in array[1:] if x > pivot] return quicksort(less) + [pivot] + quicksort(greater)