greatest number in Python
Question :-
What is coding in Python to find the greatest of two numbers?
greatest number in Python
In Python it is very and very simple to find the greatest number by using a function named as max() before using it we should look once at it’s Syntax and after that an example of it so Let’ see.
Syntax:- max(n1, n2, n3,…) or max( iterable )
Example :-
- print(max(45,65))
- x=[4,5,6,8,9,5]
- print(max(x))
Comments
Post a Comment