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 :-

  1. print(max(45,65)) 
  2. x=[4,5,6,8,9,5] 
  3. print(max(x)) 

Comments

Popular posts from this blog

Proassignmenthelp index 27

HackerRank Question: Print Function

Programmingshark index 18