Python Second Highest Value | sort() function | python programming| python shorts

Published: 13 February 2022
on channel: Mangesh Bagul
485
6

WAP to get second highest value
from the list.
data = [1,2,8,3,12]


Code:
ldata = [1,2,8,3,12]

data.sort()

print("second highest value: ",data[-2])

while count length:
print(n1)
nth = n1+n2
n1 = n2
n2 = nth
count += 1

output:
second highest value: 8

new video for python programming
python code for problem solving approach.
python for beginners
learn python in simple way.
first clear basic concepts.
solve more problems and consistent practice.

for loop in Python Program
python programming for beginners
python programming examples
python for loop
learn python

#shorts #ytshorts #pythonprogram #tutorial #education #learning #python programmer #python

instagram:   / mangeshbagul15  


On this page of the site you can watch the video online Python Second Highest Value | sort() function | python programming| python shorts with a duration of hours minute second in good quality, which was uploaded by the user Mangesh Bagul 13 February 2022, share the link with friends and acquaintances, this video has already been watched 485 times on youtube and it was liked by 6 viewers. Enjoy your viewing!