Oke, i've looked into How to check if the string is empty? but it didn't help me. Also chat GPT talks weird if you dig into this question, and the python manual didnt help me either.
Language = python 3.11.1
previous_char = " "
vowels = 'aeiou'
print(previous_char in vowels)
this code evaluates as 'false' and length 1
But if you remove the space between the quotation marks in previous_char
previous_char = ""
vowels = 'aeiou'
print(previous_char in vowels)
this code evaluates as 'true' and length 0
So basically if you ask: is 'nothing' in vowels.. its true?? I don't find this logical, but on the other hand, if it would evaluate to false, it would also be weird.
I started coding 2 weeks ago for fun, i'm 35 years old, so please don't burn me to hard if this is some kind of dumb question.
But i'm a bit stuck in understanding why this is the way it is?