0
I want to build a function the output should look like this:
Input: print (func('abcd')) Output: ['a','b','c','d']
1 ответ
+ 1
def func(string):
result = [];
for letterIndex in range(0, len(string)):
result.append(string[letterIndex]);
return result;
print(func("abcd"));