#Meltdown Mitigation in Python, my code runs, but has "Code Smell"
1 messages · Page 1 of 1 (latest)
with python you can just write logical chain like normal math when it involve number comparison
how would you write this out like normal math?
I don't know, I'll go reading up on that, thanks. 🙂
this is a simple one. let say i can write : 1 < 2 and 3 > 2. how would you chain them together?
return 'NORMAL'```
Thank you!
yeah.did it pass?
it did, thanks
hey can you do me a favor and try this for me. see if it also pass
if 0.9 < (temp_neut / threshold) < 1.1:
Ok, thanks you. The logic is similar but I wasnt sure if the comparison gonna hold because of math division in python
Thanks for your help 🙂