Post

PythonPython

n
naveen nani

Posted on 24th April 2024|19 views

0
votes

Max Integer Python

How to find max integer in python?

 I am very new to Python I just wanted to know like java's Integer.Min_value, and Integer.Max_value are there any functions in Python to identify the smallest and largest integers?

 

Answers
P
imran mohammad

Posted on 24th April 2024

If you want a function to know the largest number, then use

float('inf')

Nd if you want to know the smallest number then use

float('-inf’)

    

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos