Find largest/smallest number in a list/tuple .
Please provide me a code of this practical
Find largest/smallest number in a list/tuple .
Please provide me a code of this practical
Hey @shubhamkswn00,
So here is my code for finding largest/smallest no in list–>maximum
minimum
so here I simply put the first element in a variable and compared it to the rest of the list ,so if you want the max element and if any no is greater it will be swapped to the variable.
Also you can use max() and min() function
Sir can you please give me the code for it please