• Nov 18, 2022 •AustinLeath
0 likes • 5 views
primes=[] products=[] def prime(num): if num > 1: for i in range(2,num): if (num % i) == 0: return False else: primes.append(num) return True for n in range(30,1000): if len(primes) >= 20: break; else: prime(n) for previous, current in zip(primes[::2], primes[1::2]): products.append(previous * current) print (products)
• Dec 29, 2025 •CodeCatch
0 likes • 0 views
• Feb 26, 2023 •wabdelh
0 likes • 1 view
#You are given a two-digit integer n. Return the sum of its digits. #Example #For n = 29 the output should be solution (n) = 11 def solution(n): return (n//10 + n%10)
• Sep 20, 2025 •cntt.dsc-f4b6
1 like • 2 views
print(123)
• Dec 24, 2025 •CodeCatch
string