Python can’t multiply sequence by non-int of type ‘float’
Change: to: This: gives you list with one element. But this: computes the divisions before the multiplication with alpha. You can multiply a list by an integer: but not by a float: since you cannot have partial elements in a list. Parenthesis can be used for grouping in the mathematical calculations: