'Creat a list of variables with a specific prefix [closed]

I have a series of variables called pic1, pic2, pic3 etc. I want to create a list of all the variables that begin with "pic"

the long way would be as follows

piclist = [pic1,pic2,pic3,...]

there must be a shorter way?

thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source