Infinity in python and types | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Infinity in python and types

1. Please what is the equivalent for infinity in python. 2. My second: which property can i use to get the type of a variable in python. ".type" does not work🤔🤔

16th Sep 2020, 2:34 PM
Sola Ekundayo
Sola Ekundayo - avatar
3 Answers
16th Sep 2020, 2:42 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 3
or: from numpy import inf
16th Sep 2020, 3:34 PM
Lisa
Lisa - avatar
+ 1
AKSHAY thank u
16th Sep 2020, 2:51 PM
Sola Ekundayo
Sola Ekundayo - avatar