sum = 33 list1=[11,22,33,44,55] if sum in list1: print(f'{sum} is in list') else: print(f'{sum} is not in list')
Output:33 is in list
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags