LearnPy Hub
← NumPy problems
Easy

Vectorised Maths

Read integers and print the array multiplied by 3 and then plus 1 (one line, as a Python list via tolist()).

Input

One line of integers.

Output

A list.

Sample 1

Input
1 2 3
Output
[4, 7, 10]

Sample 2

Input
0
Output
[1]
solution.py
Output appears here
Vectorised Maths · Python practice problem · LearnPy Hub