Set .discard(), .remove() & .pop()

  • + 0 comments

    by the way in your for loop you didn't use the "i" variable so you can enhance your code like this

    for _ in range(int(input())):
        ...