diff --git a/search/views.py b/search/views.py index 6501d83..3e54d38 100644 --- a/search/views.py +++ b/search/views.py @@ -11,7 +11,14 @@ # Create your views here +def all_insert(x, e, i=0): + return [x[0:i]+[e]+x[i:]] + all_insert(x,e,i+1) if i