Skip to main content
Aivar Paalberg's user avatar
Aivar Paalberg's user avatar
Aivar Paalberg's user avatar
Aivar Paalberg
  • Member for 5 years, 2 months
  • Last seen more than a month ago
  • Tallinn, Estonia
awarded
awarded
awarded
awarded
Loading…
comment
Reverse vowels in a string
What can I say? There is built-in datatype string, there is built-in module string and using this name on list confuses me. But hey, it just me :-). On the spirit of naming list as string: If one says “bottom to top” do one actually mean “left to right” (or anything else except “bottom to top”)? Communication is hard enough as it is so I try to avoid introducing needless complications. As I am not developer nor native english speaker I oftentimes tend to fail spectacularly in my tries.
comment
Reverse vowels in a string
I am not insisting to make changes :-). My comment was solely on “”.join(string) which implies that join is performed on a string. This may lead to a question: why is this operation needed as newly constructed string is not different from the original one. Then of course one can have a look and determine that this is not the case at all - join is actually performed on a list datatype and not on a string datatype.
comment
Reverse vowels in a string
I usually use “lst” as a name of disposable list. IMHO “”..join(lst) has less ambiguity than “”.join(string).
awarded
revised
Project Euler problems 1 and 2 in python
added 79 characters in body
Loading…
answered
Loading…
comment
Reverse vowels in a string
I personally wouldn’t use “string” as a name of a list.
answered
Loading…
comment
Exercism: determine if a word or phrase is an isogram
This is assignment expression also known as 'walrus operator' available starting from Python 3.8
awarded
Loading…