8
Irina Nam
Last seen 1 year ago
Member for 9 years, 6 months, 1 day
Difficulty Normal
for str, you can use -1, -2 to count backwards. so text[-1] == text[len(text)-1]
More
I could also use ^ more. Interesting solution!
More
the brackets are redundant. you get the same result with:
return "Hi. My name is "+name+" and I'm "+str(age)+" years old"
More
I spent so much time on this, turns out it was super easy once you knew about int(), which is one of the built-in functions.
More
you actually only need two indexes: one for the start of the splice, and one for the end. index0 and index1 can be merged into:
index0=(text.find(begin) + (len(begin))
More
isn't that called gaming the system? make the method just pass all the test cases. i don't like it.
More