Prerequisite Exam: How to ignore (inf)inite values


I’ve spent quite a lot of time doing the prerequisites exam on my free account and recently upgraded to a paid account through my work place.

Would it be possible to provide answers for the prerequisite exam to see where I have went wrong and how I could improve?



The main thing I couldn’t seem to achieve was to ignore inf and find the highest position in Task 1 of the Python Exam?

Thanks in advance.

Hi @laura.firth,

Welcome to our community.

In order to ignore the inf values, you can just check whether the value you are checking is inf or not.

In this link you will find an example on how to achieve that:

Please let us know in case you need further assistance.