In Python, is != the same as Not? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In Python, is != the same as Not?

19th Apr 2017, 6:57 AM
Morne Lippiatt
Morne Lippiatt - avatar
3 Answers
+ 14
!= means not equal to.
19th Apr 2017, 7:04 AM
Michael Foster
Michael Foster - avatar
+ 4
Description from, Beginning Programming with Python® for Dummies, by John Paul Mueller: Determines whether two values are not equal. Some older versions of Python allowed you to use the <> operator in place of the != operator. Using the <> operator results in an error in current versions of Python. So yes, you're correct. More references:D --> http://stackoverflow.com/questions/2209755/python-operation-vs-is-not --> https://www.programiz.com/python-programming/
19th Apr 2017, 7:12 AM
Z3nn H3xx
Z3nn H3xx - avatar
+ 1
It mean Does Not Equal
4th Jun 2017, 11:19 PM
Fabienne