Computer Science, asked by rathorenr2004, 4 months ago

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