(Jul-20-2019, 11:24 PM)SenkouSimmer Wrote: if filename == "class1.txt" or "class2.txt":This is your problem. Read this tutorial as it will explain why.
In simple terms:
Your if condition is always true regardless of what you put because this string
"class2.txt"
returns True always.
Recommended Tutorials: