Microsoft MakeCode

Am I missing something?

Am I being “not smart”.

why is the split function not working

It just returns an empty list.

It looks like it’s giving an error from a place you can’t control, since you’re not using “length” in your program.

Cannot read property ‘length’ of undefined
at (main.ts:1:1)

It works in JavaScript…

Yes I know but it should work in python
.split(" ") works the same in both languages,
but in python for some reason it is returning []
which the obviously
returns an error
can this be fixed?

Yeah, it should. If it still doesn’t work on Monday, I’ll check in with the team.