Skip to content

Conversation

@radtomas
Copy link

Copy link
Author

@radtomas radtomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

.LSOverride

# Icon must end with two \r
Icon
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

all-the-same.py Outdated

def all_the_same(elements: List[Any]) -> bool:

return all(elements[i] == elements[i+1] for i in range(len(elements)-1))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:(

range(len( = evil

all(item == elements[0] for item in elements)

if text[0] != tempChar.upper():
text = tempChar.upper() + text[1:]

return text
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first, rest = text[0], text[1:]
f"{first.upper()}{rest.replace('.', '')}."

"{0}{1}.".format(first.upper(), rest.replace('.', '')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants