--

Hi!

You're right, the IDE shows me that the variable might be referenced before it is assigned. The code still works, because when i=0, the variable will be assigned correctly and then overwritten in the next iterations.

There's probably better ways to handle this.. feel free to make a suggestion in the GitHub repo (PullRequest), I'd appreciate it!

--

--

Johannes Schmidt
Johannes Schmidt

Written by Johannes Schmidt

Software & Data Engineer at Datamesh GmbH. Sharing knowledge and code around software (cloud) development, data engineering & data science!

No responses yet