LearnPy Hub
← Functions problems
Easy

Return, Don't Print

Write triple(n) that returns 3n. Read n and print triple(n) + 1, which only works if the function returns its answer.

Input

One integer.

Output

One integer.

Sample 1

Input
2
Output
7

Sample 2

Input
0
Output
1
solution.py
Output appears here
Return, Don't Print · Python practice problem · LearnPy Hub