私はPythonの学習を始めたばかりで、学習する練習のためにさまざまなコードを入力することをいじっていました。次のコードを作成しました。
import math
def lol():
print (math.cos(math.pi))
print ("I hope this works")
def print_twice(bruce):
print bruce
print bruce
print_twice(lol())
実行すると、出力は次のようになります。
-1.0
I hope this works
None
None
関数 lol() を2回出力していないのはなぜですか?