In the blank spaces below, write the output produced by each…
In the blank spaces below, write the output produced by each line of the following program, as it would appear on the console. def say(foo, sam, sue): print(sam, “wants”, sue, “to be”, foo) def main(): foo = “and” sam = “sam” sue = “once” bill = “banana” hope = “cat” ten = “say” say(sam, sue, foo) say(foo, ten, sam) say(hope, bill, sue) bill = bill + “~2” say(bill, hope, sam) say(“foo”, “sue”, hope) main() Line 1: [l1] Line 2: [l2] Line 3: [l3] Line 4: [l4] Line 5: [l5]
Read Details