Iterating through a list with dataclasses, and checking if an element matches the inputted int?
Iterating through a list with dataclasses, and checking if an element matches the inputted int? Question: I"m having a bit of trouble with my code. I’m trying to get the IDs from the list and compare it to an int input. If the int is the same as the ID, it’ll print("Yes"). If it doesn’t …