Exploring Python through counter-intuitive snippets
Exploring Python through counter-intuitive snippets. If you think you know Python, think once more! - satwikkansal/wtfpython... (more…)
Read more »The challenge Remove a exclamation mark from the end of string. For a beginner kata, you can assume that the input data is always a string, no need to verify it. Examples Test cases The solution in Python Option 1: Option 2 (using endswith): Option 3 (sim… Read more