CJCoding With Joseph
15free / daySign inCreate account

Print Or Return

Two functions take the same two whole numbers. show_sum(a: int, b: int) -> None prints their sum and returns nothing; sum_back(a: int, b: int) -> int returns the sum without printing. The driver calls show_sum once, then stores what sum_back returns and prints double that value, so the output is two lines: the sum, then twice the sum. Input: two lines, each an integer, no prompts. Do not change the driver.

Expected Output:

7
14

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
Functions
📥 Auto-Input:
3\n4\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.