False
>>> type(test)
<class 'str'>```
Could someone please explain this behavior to me?
```>>> test
'<html><body><p>Aegis of the Void: Fortitude 4, Ash Path 4, Ritual: Grasp the Ghostly<br>Custom (11xp)<br>Inspire by tales of an enemy where the weapons of attackers would rot away Santio developed this power, primarly to defend aginst staking. After an inatimate object comes in contact with the Player he may reflexivly spend a blood and make a static mental challenge against the craft rating of the object, retest with the Crafts ability. Use of this power is reflexive; it does not take an action and the blood spent does not cound toward generation limit. If successfull, Necrotic energy violently and instantly casts the object into Oblivion. While this power does nothing to negate damage from a weapon that has struck the Vampire, it does disarm his opponent and prevent him from being staked or otherwise impailed. Those attuned to such things my make a perception challenge vs the users mentals (retest investigation/subtrafudge) to notice a small nihil open at the point of contact consming the object. </p></body>'```
#๐ Type checking failing
6 messages ยท Page 1 of 1 (latest)
@modest coral
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
What you're doing with test is str is basically checking if test is literally the str type. In this case, it's not, so it returns false. If you want to verify if something is an instance of some type, there's isinstance.
ty
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.