res.add( # type(res) == set
int( # int("123") == 123, type("123") == str, type(123) = int
''.join( # см ниже
digs # digs == ('1','2',3')
)
)
)
for s in '', '+', '!=':
print(s.join(['a', 'bc', 'def']))
from itertools import permutations
combinations = [''.join(c) for c in permutations('1234')] # был лишний квалификатор itertools.
print(combinations) # херовая идея так использовать это имя одновременно с импортом из itertools
public static final float PI = 3.14;
. Кошмар, но вот так ) function reduceFrac(numerator, denomerator) {
let a = numerator, b = denomerator;
while (a) {
let c = b % a;
b = a;
a = c;
}
return [numerator / b, denomerator / b]
}
|abc|
|21d|
|345|
|123|
|a54|
|bcd|