Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Basic datatypes: 3rd exercise on strings needs to be improved.  #50

Copy link
Copy link
Closed
@yakutovicha

Description

@yakutovicha
Issue body actions

The solution to exercise 3 on strings is not strictly correct:

I provide a solution that is

my_string.split()

One might also think of the following solution that could also work:

my_string.split(" ")

However, those two approaches work differently with an empty string:

"".split()  # returns an empty list []
"".split(" ")  # returns a list with an empty string [""]

We should either adapt the description or change solution to .split(" ").

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.