01 / 07
Two that look much the same
Compare the two functions below. The only difference is the one word, print or return. Both work out number * 2.
Call them, though, and only one line appears. give(5) shows nothing. That does not mean nothing happened.
def show(number): print(number * 2)def give(number): return number * 2show(5)give(5)Result
10