LearnPy Hub
← Context Managers problems
Easy

What as Gives You

Write class Box holding a number whose __enter__ returns the number. Read n and inside with Box(n) as v: print v * 2.

Input

One integer.

Output

One integer.

Sample 1

Input
5
Output
10

Sample 2

Input
0
Output
0
solution.py
Output appears here
What as Gives You · Python practice problem · LearnPy Hub