logo-MindMajix
PostPythonPython
n
naveen nani

Posted on 19th July 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?

 

1 answers
Answers
P
imran mohammad

Posted on 19th July 2024| views

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
Name
Course *
Email *
Phone Number