This is the same error you were having before. In line 14, you are trying to place a Float into an array of Integers. The quick fix is to remove all of the “Int
” from your code. Test line-by-line to get a better understanding of what is going wrong rather than running the entire code at once.
(Your code formatting is better this time! But you should also copy and paste your error message into a code block between ```
rather than posting a screenshot and try to use a more descriptive title.)