Buggy python submission (verdict: Runtime Error):
class sort:
    def __init__(self, num):
        self.num = num
 
    def insert(self, lst):
        print(*lst)
        for i in range(1,self.num):
            j = i - 1
            while (j >= 0) * (lst[j] > lst[i]):
                j -= 1
            lst[j+1:i+1] = lst[i] , *lst[j+1:i]
            print(*lst)

sort(int(input())).insert(list(map(int,input().split())))

Fixed submission:
n = int(input())
lst = list(map(int, input().split()))
for i in range(n):
    li = lst[i]
    j = i-1
    while j >= 0 and lst[j] > li:
        lst[j:j+2] = lst[j+1], lst[j]
        j -= 1
    print(*lst)

Buggy python submission (verdict: Runtime Error):
class sort:
    def __init__(self, num):
        self.num = num
 
    def insert(self, lst):
        print(*lst)
        for i in range(1,self.num):
            j = i - 1
            while (j >= 0) * (lst[j] > lst[i]):
                j -= 1
            lst[j+1:i+1] = lst[i] , *lst[j+1:i]
            print(*lst)

n = int(input())
l = list(map(int,input().split()))

s = sort(n)
s.insert(l)

Fixed submission:
n = int(input())
lst = list(map(int, input().split()))
for i in range(n):
    li = lst[i]
    j = i-1
    while j >= 0 and lst[j] > li:
        lst[j:j+2] = lst[j+1], lst[j]
        j -= 1
    print(*lst)

Buggy python submission (verdict: Runtime Error):
class sort1:
    def __init__(self, num):
        self.num = num
 
    def p_insert(self, lst):
        print(*lst)
        for i in range(1,self.num):
            j = i - 1
            while (j >= 0) * (lst[j] > lst[i]):
                j -= 1
            lst[j+1:i+1] = lst[i] , *lst[j+1:i]
            print(*lst)

n = int(input())
l = list(map(int,input().split()))

s = sort1(n)
s.p_insert(l)

Fixed submission:
n = int(input())
lst = list(map(int, input().split()))
for i in range(n):
    li = lst[i]
    j = i-1
    while j >= 0 and lst[j] > li:
        lst[j:j+2] = lst[j+1], lst[j]
        j -= 1
    print(*lst)

Buggy python submission (verdict: Runtime Error):
input()
lst = input().split()
for i in range(len(lst)):
    j = i - 1
    while (j >= 0) * (lst[j] > lst[i]):
        j -= 1
    lst[j+1:i+1] = lst[i] , *lst[j+1:i]
    print(*lst)

Fixed submission:
n = int(input())
lst = list(map(int, input().split()))
for i in range(n):
    li = lst[i]
    j = i-1
    while j >= 0 and lst[j] > li:
        lst[j:j+2] = lst[j+1], lst[j]
        j -= 1
    print(*lst)

Buggy python submission (verdict: Runtime Error):
input()
lst = list(map(int,input().split()))
for i in range(len(lst)):
    j = i - 1
    while (j >= 0) * (lst[j] > lst[i]):
        j -= 1
    lst[j+1:i+1] = lst[i] , *lst[j+1:i]
    print(*lst)

Fixed submission:
n = int(input())
lst = list(map(int, input().split()))
for i in range(n):
    li = lst[i]
    j = i-1
    while j >= 0 and lst[j] > li:
        lst[j:j+2] = lst[j+1], lst[j]
        j -= 1
    print(*lst)

Buggy python submission (verdict: Runtime Error):
input()
lst = list(map(int,input().split()))
for i in range(len(lst)):
    j = min(0, i-1)
    while (j >= 0) * (lst[j] > lst[i]):
        j -= 1
    lst[j+1:i+1] = lst[i] , *lst[j+1:i]
    print(*lst)

Fixed submission:
n = int(input())
lst = list(map(int, input().split()))
for i in range(n):
    li = lst[i]
    j = i-1
    while j >= 0 and lst[j] > li:
        lst[j:j+2] = lst[j+1], lst[j]
        j -= 1
    print(*lst)

Buggy python submission (verdict: Runtime Error):
n = int(input())
lst = list(map(int, input().split()))
print(*lst)
for i in range(1,n):
    j = i-1
    while j >= 0 and lst[j] > lst[i]:
        j -= 1
    lst[j+1:i+1] = lst[i] , *lst[j+1:i]
    print(*lst)

Fixed submission:
n = int(input())
lst = list(map(int, input().split()))
for i in range(n):
    li = lst[i]
    j = i-1
    while j >= 0 and lst[j] > li:
        lst[j:j+2] = lst[j+1], lst[j]
        j -= 1
    print(*lst)