LearnPy Hub
← Comprehensions problems
Easy

Halve Every Number

Read integers and print a list of each number divided by 2 (as floats), using a comprehension.

Input

Integers separated by spaces.

Output

A Python list.

Sample 1

Input
2 4 6
Output
[1.0, 2.0, 3.0]

Sample 2

Input
1
Output
[0.5]
solution.py
Output appears here
Halve Every Number · Python practice problem · LearnPy Hub