Aug-04-2020, 11:55 PM
i tried this on Ubuntu Linux. i hope it works in other places you can have commands in Python like Windows.
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from sys import argv,stderr """The range command outputs a range of decimal numbers from 1 to 3 arguments.""" def help(): print('The range command outputs a range of decimal numbers from 1 to 3 arguments.',file=stderr) def version(): print('version 0.0.1',file=stderr) if argv[1:2][0][:2]=='--': if '--help' in argv:help() if '--version' in argv:version() exit(3) for n in range(*[int(x)for x in argv[1:4]]): print(n,flush=True)
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.