I have the following code, just a snippet
val = my_entry.get()
print(val)
if (val == 5) or (val == 6) or (val == 18):
do_something(val)
in my real project are up to ten values possible.
i am still learning python, but what know till now that should go better with a list. tuple etc. My opinion is write best code as possible
Any hint ?
Regards
Rainer