Make a list comprehension to return a list of numbers which are not present in another list of numbers.
Define a list of numbers alist from 1 to 50 using a list comprehension.
Define another list blist and store its values as
[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47]
Make a list final using list comprehension which would contain elements which are in alist but not in blist.
Print final
alist = [x for x in range(1,51)]
blist = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47]
final = [i for i in range (len(alist)) if i not in blist ]
print (final)