Double for

Report a typo

What will be the value of i after the code runs?

for i in range(10):
    line = ""
    for j in range(10):
        if i == j:
            break
        line += "{} ".format(j)
    print(line)
        
Enter a number
___

Create a free account to access the full topic