hnc-eduard/Excercises/тест.py

14 lines
327 B
Python
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

a = 'Любить по русски'
print(a.split("с"))
def split_string(string, separator):
array = []
for i in string:
if i != separator:
array.append(i)
array1 = array
return array1
print(array1)
print(split_string('Они устали ходить под конвоем', 'о'))