Oct-10-2017, 11:35 AM
here's an example of what i would like to do
i would like that when i run my script like this:
" python names.py -j ", it would only print :
how would i do that?
thanks
1 2 3 4 5 |
def infos(): print "His name is John, he is 24" print "His name is Brad, he is 17 print "His name is Marc, he is 41 print "His name is Leo, he is 51 |
" python names.py -j ", it would only print :
Output:His name is John,he is 24
" python names.py -m " , it would onl print : Output:His name is Marc, he is 41
etc..how would i do that?
thanks