dsPython list of random numbers This is a Python Program to generate random numbers from 1 to 20 and append them to the…byJohn