Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 347 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 347 Bytes

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