Anonymous user
String comparison: Difference between revisions
m
→{{header|Python}}
m (→{{header|AWK}}) |
|||
Line 181:
Notes:
* Python is strongly typed. The string '24' is never coerced to a number, (or vice versa).
* Python does not have case-insensitive string comparison operators, instead use <code>name.
<lang python>def compare(a, b):
print("\n%r is of type %r and %r is of type %r"
|