I'm a beginner at python and I want to make a python file which contains a function which prints the list of even number at the range of 1~50. this is my code.
def test():
for int in range(1,51):
if int%2==0:
return int
print(list(int))
test()
I ran it through Pycharm but nothing has been printed on my console. Can anybody give me some help?