Find the Runner-Up Score!

  • + 0 comments

    user_input = input("Enter elements separated by spaces: ") input_elements=user_input.split() elements for r idm patch.= [] for i in input_elements: try: element = int(i) elements.append(element) except ValueError: print("value not a integer") unq=set(elements) otp=sorted(unq) fin=otp[-2] print(fin)