from random import random,seed
n=int(input())
if n>=1 and n<=100:
m=seed(n)
ls=[1]
for i in [2,n+1]:
ls.append(i)
i=i+1
print(ls)
for a in [2,n+1]:
if a%m==0:
continue
else:
ls2=ls.append(a)
print(ls2)
runfile('C:/Users/86137/Desktop/spyder/untitled0.py')
6
[1, 2, 7]
Traceback (most recent call last):
File "C:\Users\86137\Desktop\spyder\untitled0.py", line 18, in
if a%m==0:
TypeError: unsupported operand type(s) for %: 'int' and 'NoneType'