#!/usr/bin/env python3 # # # Copyright (c) 2021, Hiroyuki Ohsaki. # All rights reserved. # # $Id: num-generator.py,v 1.1 2021/11/15 10:59:19 ohsaki Exp ohsaki $ # def main(): print( list( # Generate a list containing only interested numbers ranging # from 1 to 100. n for n in range(1, 100 + 1) if n % 2 != 0 and n % 3 != 0 and n % 10 not in [0, 5])) if __name__ == "__main__": main()