False


Definition
Keyword implies not True.

Syntax
False

Parameters
N/A

Example
str.isspace().__eq__(False)
The following are outcome:
 >>> str.isspace("").__eq__(False)
True
>>> x=""
>>> x.isspace().__ne__(True)
True


str.isupper.__eq__(str.upper())
The return are following:
 >>> x="PYTHON LAKE".isupper()
>>> y="python lake".upper()
>>> x==y
False
>>> "PYTHON LAKE".isupper()==("python lake".upper())
False
>>> "PYTHON LAKE".isupper()
True
>>> "python lake".upper().__eq__("PYTHON LAKE")
True
>>> True.__eq__(True)
True
>>>


str.rstrip().__gt__(str)->False
The returns are:
 >>> "Python Lake ".rstrip()
'Python Lake'
>>> "Python Lake                            ".rstrip().__gt__("Python Lake ".rstrip())
False
>>> "Python Lake                            ".rstrip().__eq__("Python Lake ".rstrip())
True
>>> "Python Lake                             ".rstrip().__eq__("Python Lake")
True
>>> "Python Lake                             ".rstrip().__eq__(str("Python Lake"))
True
>>> type("Python Lake ".rstrip())
<class 'str'>
>>>


str(int())== int(str())-> False
The returns are :
 >>> type("Python Research Centre".rfind("Centre"))==type(str("Python Research Centre".rfind("Centre")))
False
>>> type("Python Research Centre".rfind("Centre")) is not type(str("Python Research Centre".rfind("Centre")))
True
>>> "Python Research Centre".rfind("Centre") is not str(int("Python Research Centre".rfind("Centre")))
True
>>> "Python Research Centre".rfind("Centre").__eq__str(int("Python Research Centre".rfind("Centre")))
False
>>> "Python Research Centre".rfind("Centre") .__eq__int(str("Python Research Centre".rfind("Centre")))
True
>>>


str==str.splitlines()-> False
Equal test on conducted on the string and other str.splitlines.
 >>> x="Python Reserch Centre"
>>> x.splitlines()
['Python Reserch Centre']
>>> type(x.splitlines())
<class 'list'>
>>> y=x.splitlines()
>>> x==y
False
>>> x.splitlines().__eq__(['Python Reserch Centre'])
True
>>> x.splitlines()==(['Python Reserch Centre'])
True
>>> test1=x.splitlines()
>>> test2=['Python Reserch Centre']
>>> test1==test2
True
>>> 

str.istitle().__ne__(False)
The return are equal to:
 >>> 
>>> "Python Lake".istitle().__eq__(True)
True
>>> "Python Lake".istitle().__ne__(False)
True
>>> "Python lake".istitle().__eq__(True)
False
>>> "python lake".istitle().__eq__(True)
False
>>> "PYTHON LAKE".istitle().__eq__(True)
False
>>>


string==string
Returns are following:
 >>> list=["Python", "Research", "Centre"]
>>> "Lake".join(list)
'PythonLakeResearchLakeCentre'
>>> set={"Pyhton", "Research", "Centre"}
>>> "Lake".join(set)
'ResearchLakePyhtonLakeCentre'
>>> tuple=("Pyhton", "Research", "Centre")
>>> "Lake".join(tuple)
'PyhtonLakeResearchLakeCentre'
>>> list==set
False
>>> set==tuple
False
>>> False==False
True
>>> "Lake".join(tuple)=="Lake".join(set)
False
>>> 'PyhtonLakeResearchLakeCentre'=='ResearchLakePyhtonLakeCentre'
False
>>> 'PythonLakeResearchLakeCentre'=='PythonLakeResearchLakeCentre'
True
>>>


class.....: def __init__()......:....string==False
The function tested whether the string value is single word, or contain non-string values through input().
 class str_methods():
    def __init__(self, a,b,c):

        identifier=str.isidentifier(a)

        if str.isidentifier(a).__eq__(True):
            print("Full name should not contain special characters or numbers")
            
        else:
            print("Your full not name accepted")

        
      
        alpha=str.isalpha(b)
        
        if alpha.__ne__(False):
            print("Full name accepted")

            lower=str.lower(c)
            if lower.__eq__(str.lower(c)):
                 str.upper(c)
                 print("System convert your name to uppercase:", str.upper(c))
            else:
                 print("Your name accepted")

        else:
            print("Full name can't be one word")

                    

input_text=input("Please enter  your full name: ")

str_methods(input_text, input_text,input_text)
    
          

>>> 
Please enter your full name: Adil22
Full name should not contain special characters or numbers
Full name can't be one word
>>>        



Comments