Oct-10-2017, 11:35 AM
here's an example of what i would like to do
" python names.py -j ", it would only print :
how would i do that?
thanks
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 51i would like that when i run my script like this:
" 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