Looking at the first answer in the link: convert number words to Integers Python Code
The author uses
for idx, word in enumerate(scales):
numwords[word] = (10 ** (idx * 3 or 2), 0)
How has the author used 'or' with multiply (*) here:
10 ** (idx * 3 or 2)