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

Зміст курсу

String Manipulation in Python

String Manipulation in Python

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

bookCreating a String

Welcome to the course! Strings are one of the data types, representing textual data. As a data scientist, you should be able to work with such data.

Let's start our learning with defining strings. To define a string, put text within the single ('text') or double quotation marks ("text"). Another way - is to use the str function with an expression you want to represent as a string. Usually, this function is used to convert an existing variable into a string.

Note

There is no difference between using single or double quotation marks. But the text within the string must be surrounded by the same type of quotation marks (i.e. you can not use "text').

Завдання

Assign string 'String Manipulation in Python' to the variable course and print its value.

Once you've completed this task, click the button below the code to check your solution.

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

Як ми можемо покращити це?

Дякуємо за ваш відгук!

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

bookCreating a String

Welcome to the course! Strings are one of the data types, representing textual data. As a data scientist, you should be able to work with such data.

Let's start our learning with defining strings. To define a string, put text within the single ('text') or double quotation marks ("text"). Another way - is to use the str function with an expression you want to represent as a string. Usually, this function is used to convert an existing variable into a string.

Note

There is no difference between using single or double quotation marks. But the text within the string must be surrounded by the same type of quotation marks (i.e. you can not use "text').

Завдання

Assign string 'String Manipulation in Python' to the variable course and print its value.

Once you've completed this task, click the button below the code to check your solution.

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

Як ми можемо покращити це?

Дякуємо за ваш відгук!

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

bookCreating a String

Welcome to the course! Strings are one of the data types, representing textual data. As a data scientist, you should be able to work with such data.

Let's start our learning with defining strings. To define a string, put text within the single ('text') or double quotation marks ("text"). Another way - is to use the str function with an expression you want to represent as a string. Usually, this function is used to convert an existing variable into a string.

Note

There is no difference between using single or double quotation marks. But the text within the string must be surrounded by the same type of quotation marks (i.e. you can not use "text').

Завдання

Assign string 'String Manipulation in Python' to the variable course and print its value.

Once you've completed this task, click the button below the code to check your solution.

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

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Welcome to the course! Strings are one of the data types, representing textual data. As a data scientist, you should be able to work with such data.

Let's start our learning with defining strings. To define a string, put text within the single ('text') or double quotation marks ("text"). Another way - is to use the str function with an expression you want to represent as a string. Usually, this function is used to convert an existing variable into a string.

Note

There is no difference between using single or double quotation marks. But the text within the string must be surrounded by the same type of quotation marks (i.e. you can not use "text').

Завдання

Assign string 'String Manipulation in Python' to the variable course and print its value.

Once you've completed this task, click the button below the code to check your solution.

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 1. Розділ 1
Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
some-alt