Python code that shows for..else syntax: #!/usr/bin/python3 for n in range(2, 10): for x in range(2, n): if n % x == 0: print( n, 'equals', x, '*', n/x) break else: # loop fell through without finding a factor print(n, 'is a prime number')
https://files.mastodon.social/media_attachments/files/112/484/103/399/732/119/original/ce05447a6c8b587e.png