I'm working on a Python problem where I need to set up a tuple with a pre-defined length n (being n an input of the program), where each element must have a specific float value (e.g. H), similar to what is possible to do with NumPy arrays in this way:
import numpy as np
arr = H*np.ones(n)
Is it possible for a tuple?