T=eval(input('Enter Tuple')
Length=length(T)
maxval=max(T)
smax=T(0)
for a in range (length):
if T[a]>smax andT[a]<maxval:
smax=T[a]
print("The second largest number is",smax)
what is wrong in this syntax ????
plz tell me
Answers
Answered by
1
Answer:
T=eval(input('Enter Tuple'))
Length=len(T)
maxval=max(T)
smax=T(0)
for a in range (length):
if T[a]>smax andT[a]<maxval:
smax=T[a]
print("The second largest number is",smax)
Explanation:
although I have removed all the possibile errors but this code will not work as there will be a type error also.
Similar questions
India Languages,
2 months ago
History,
2 months ago
Computer Science,
2 months ago
Math,
4 months ago
Math,
4 months ago
Chemistry,
10 months ago