79552100

Date: 2025-04-03 05:51:09
Score: 1
Natty:
Report link

A little more compact formulation would be

import numpy as np
t = np.full(5,2)**np.arange(5)

which gives

t=array([ 1,  2,  4,  8, 16])
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Manfred Weis