8th day of python challenges 111-117

This commit is contained in:
abd.shallal
2019-08-04 15:26:35 +03:00
parent b04c1b055f
commit 627802c383
3215 changed files with 760227 additions and 491 deletions

View File

@@ -0,0 +1,15 @@
# pylint: disable=missing-docstring, invalid-name, misplaced-comparison-constant,literal-comparison, comparison-with-itself
x = 42
a = x is None
b = x == None # [singleton-comparison]
c = x == True # [singleton-comparison]
d = x == False # [singleton-comparison]
e = True == True # [singleton-comparison]
f = x is 1
g = 123 is "123"
h = None is x
i = None == x # [singleton-comparison]
j = x != True # [singleton-comparison]
j1 = x != False # [singleton-comparison]
j2 = x != None # [singleton-comparison]