osモジュールのsystem関数を使う。
>>> import os
>>> os.system("ls *.py")
argv.py function.py person.py
bubble_sort.py game_score.py person2.py
count_files.py get_feed.py person2a.py
counting_sort.py get_feed2.py person2b.py
csv_read.py hello.py primes.py
csv_write.py httphead.py primes2.py
default_arg.py if.py print.py
dict.py inheritance.py print_to_file.py
dict_keys.py inheritance2.py quick_sort.py
dictionary.py inheritance3.py range.py
enumerate.py inheritance3a.py reduce.py
exception1.py iterator.py return_function.py
exception2.py join.py set.py
exception3.py lambda.py set_add_remove.py
false.py list_append.py sort.py
fib.py list_comprehension.py split.py
file_input.py list_extend.py strip.py
file_read.py list_index.py transpose.py
file_readline.py list_pop.py true_or_false.py
file_readlines.py list_remove.py true_or_false2.py
file_write.py list_reverse.py tuple.py
file_writelines.py ljust.py upper_lower.py
filecount.py map.py url_get.py
fizzbuzz.py merge_sort.py walk.py
fizzbuzz2.py mkmd5.py while.py
for.py mywc.py
0
最後の0は関数の返り値。