/compare-strings-python

Compare two strings in Python

Primary LanguagePython

Compare Strings

Compare two strings in Python to check if they are identical.

Usage

$ python compare.py Nick Nick
a: Nick
b: Nick
The strings are both the same
The first three characters are the same
$ python compare.py Nick Nicola
a: Nick
b: Nicola
The strings are different
The first three characters are the same