Is it a problem with my editor or what stupid mistake am I making ? Here is the screen-shot
This code returns true and it actually should
a = "https://www.reddit.com/comments/ado0ym/use_reddit_coins_to_award_gold_to_your_favorite/"
b = "use_reddit_coins_to_award_gold_to_your_favorite"
if b in a:
print("true")
# Results return true
But this must return False but returns True
a = "https: // www.reddit.com/comments/ado0ym/"
b = "use_reddit_coins_to_award_gold_to_your_favorite"
if b in a:
print("true")
# Results return true
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…