Featured post

Career Vs Your Attitude Do These Now

75% of the American workforce are actively looking for jobs at any given point in time, of which 69% of them are currently employed. 



Networking 
Tapping into your Network, Creating, and Maximizing your Personal Brand and Researching Companies in your Field of Interest will help you in finding jobs that suit your interest.


Trying to randomly find a job will get you nowhere. PREPARE, PLAN, and RESEARCH, and you will find a job that is meant for you.


If you have attended a get-together of friends or a social gathering off-late, chances are that you would have come across at least half a dozen people, talking about their jobs; how they are unhappy with it and looking for a change, or how difficult it seems to get one in the first place.
Job Search 

Searching for a job has become one of the most time-occupying tasks in recent times. Almost as difficult as getting one, a job search means researching, identifying, and applying for jobs and going through the functions of interviews, discus…

Python top two ideas you need to Compare Strings

In Python, you can compare two strings how you would do on numbers. Python is stricter on string comparison. It identifies any small differences in strings. So Python is case sensitive while comparing it checks for identical ones. 

  
Python follow-suite other languages. It compares strings for exact equals. Else, treat them as different strings.

Python String Comparison 

  • Extra spaces
  • Uppercase or Lowercase

#1 Example

>>> a = "Virginia"
>>> b = "virginia"
>>> a == b False 

The strings a and b are looking similar. But there is case sensitive difference. Python checks for extra white spaces as well as Upper or Lowe case letters.

#2 Example

>>> greet1 = "Hello "
>>> greet2 = "Hello"
>>> greet1  == greet2 False

The greet1 has space at the end whereas greet2 does not. Python looks at whitespace when comparing strings, so the two aren’t considered equal.

Comments

Popular posts from this blog

How to Use Python Try and Except Logic Correctly

10 Top Unix Disk Space Quiz Questions

Hyperledger Fabric: 20 Real Interview Questions

How to Use Special Keys in UNIX