for n in range (1,10):
    if n==5:
        break
    print (n, end=' ')

    
for n in range (1,10):
    if n==5:
        break
print (n, end=' ')

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: