How to enter infinity keyword?

I found a solution. I can just add this line “inf=float(‘inf’)” in my code, and inf keyword will act as an unbounded upper value

2 Likes