Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Joining | String Methods
String Manipulation in Python
course content

Зміст курсу

String Manipulation in Python

String Manipulation in Python

1. Basic Concepts
2. String Methods
3. Strings Formatting

Joining

In two previous chapters, we considered methods that split a string into a list. Now we will learn the method that will do the opposite thing.

To join all the elements of iterable object obj (like tuple, list, dictionary or set) use the following syntax: separator.join(obj), where separator is the string used to separate objects for join. If obj is dictionary, then its keys will be joined. For example,

12
print(", ".join(['Python', 'R', 'SQL'])) print(" - ".join(('1', '2', '3')))
copy

Завдання

You are given the list of strings splitted_string. You need to join these strings separated by dot and space into one sentence.

Завдання

You are given the list of strings splitted_string. You need to join these strings separated by dot and space into one sentence.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 2. Розділ 6
toggle bottom row

Joining

In two previous chapters, we considered methods that split a string into a list. Now we will learn the method that will do the opposite thing.

To join all the elements of iterable object obj (like tuple, list, dictionary or set) use the following syntax: separator.join(obj), where separator is the string used to separate objects for join. If obj is dictionary, then its keys will be joined. For example,

12
print(", ".join(['Python', 'R', 'SQL'])) print(" - ".join(('1', '2', '3')))
copy

Завдання

You are given the list of strings splitted_string. You need to join these strings separated by dot and space into one sentence.

Завдання

You are given the list of strings splitted_string. You need to join these strings separated by dot and space into one sentence.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 2. Розділ 6
toggle bottom row

Joining

In two previous chapters, we considered methods that split a string into a list. Now we will learn the method that will do the opposite thing.

To join all the elements of iterable object obj (like tuple, list, dictionary or set) use the following syntax: separator.join(obj), where separator is the string used to separate objects for join. If obj is dictionary, then its keys will be joined. For example,

12
print(", ".join(['Python', 'R', 'SQL'])) print(" - ".join(('1', '2', '3')))
copy

Завдання

You are given the list of strings splitted_string. You need to join these strings separated by dot and space into one sentence.

Завдання

You are given the list of strings splitted_string. You need to join these strings separated by dot and space into one sentence.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

In two previous chapters, we considered methods that split a string into a list. Now we will learn the method that will do the opposite thing.

To join all the elements of iterable object obj (like tuple, list, dictionary or set) use the following syntax: separator.join(obj), where separator is the string used to separate objects for join. If obj is dictionary, then its keys will be joined. For example,

12
print(", ".join(['Python', 'R', 'SQL'])) print(" - ".join(('1', '2', '3')))
copy

Завдання

You are given the list of strings splitted_string. You need to join these strings separated by dot and space into one sentence.

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 2. Розділ 6
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt