Assalamualaykum, I was testing this file when I got this error:
python
main.py:536: SyntaxWarning: "is" with a literal. Did you mean "=="?
if((sentance[index] in (alphabet or alefat or hamzat)or sentance[index] is ' ' )):
Evidence:
I am running Windows as my operating system and Python version 3.11.3 (the latest version today).
To reproduce the bug, you can use the following code:
sentance = "This is a test."
alphabet = "abcdefghijklmnopqrstuvwxyz"
alefat = "ءآأؤإئابتثجحخدذرزسشصضطظعغفقكلمنهوي"
hamzat = "ءآأؤإئ"
for index in range(len(sentance)):
if((sentance[index] in (alphabet or alefat or hamzat)or sentance[index] is ' ' )):
pass
Assalamualaykum, I was testing this file when I got this error:
Evidence:![image](https://github.com/hci-lab/PyQuran/assets/120132998/15a7091f-3a5d-444d-8d2a-6d589f2875c1)
I am running Windows as my operating system and Python version 3.11.3 (the latest version today).
To reproduce the bug, you can use the following code:
So am I missing something here?