Timeline for Determine if Strings are equal
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 28, 2014 at 6:11 | comment | added | Winston Ewert | How about not {a}-{b}? | |
| Mar 13, 2014 at 22:14 | comment | added | Varicus | @PeterTaylor: Thanks for pointing out the unnecessary whitespace. {a} is equivalent to set([a]). | |
| Mar 13, 2014 at 22:11 | history | edited | Varicus | CC BY-SA 3.0 | removed unnecessary whitespace |
| Mar 13, 2014 at 16:31 | comment | added | Peter Taylor | Ah, {} isn't the same as set(). You can save 1 char by removing the whitespace. | |
| Mar 13, 2014 at 16:25 | comment | added | Varicus | @PeterTaylor: Since "s"!="ss", it will output False. Case sensitivity is also preserved. It even works for a="", b="s". The code does not convert strings to sets, but creates sets containing the strings. | |
| Mar 13, 2014 at 15:33 | comment | added | Peter Taylor | What output does this give for a="s", b="ss"? | |
| Mar 13, 2014 at 15:29 | review | First posts | |||
| Mar 13, 2014 at 15:33 | |||||
| Mar 13, 2014 at 15:12 | history | answered | Varicus | CC BY-SA 3.0 |