In Python, if i wanted to write something that returns a boolean True as long as the @ symbol appears after the . symbol, how would I write this?
I have tried writing something like:
if myString[x] == "@" > myString[x] == ".":
return True
but, I assume that this won't work because they're both essentially the same index. Looking for some explanation as well, just learning a lot of basics still. Thanks!