I'm new to Python and been trying to solve this problem.
I want to create list of 3 - digit numbers in which first digit + second digit = third digit
and if sum of first two digits is greater than 9 I want the third digit of that number to be second digit of the sum. eg. 583 where 5+8=13 so the last digit will be 3. I want to have 50 3-digit numbers like that
this is what I've got so far.
import random as rd
N=50
ar1 = [rd.randint(100, 999) for i in range(N)]