Post

PythonPython

n
naveen nani

Posted on 28th February 2024|16 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 28th February 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