Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Concatenation | Data Types
Introduction to Data Analysis in Python
course content

Kursinnhold

Introduction to Data Analysis in Python

Introduction to Data Analysis in Python

1. Basics
2. Data Types
3. Control Flow
4. Functions and Modules
5. Introduction to NumPy

book
Concatenation

Let's consider the operations you can do with strings.

First, you may write several lines together by concatenating them (using the + operator). If you need to write some number together with a string, you should convert a number to string by using the str() function.

123456
# Two strings and one number string_1 = "I would like to learn Python more than " number = 2 string_2 = " hours a day." # Connect parts together print(string_1 + str(number) + string_2)
copy

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 5

Spør AI

expand
ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

course content

Kursinnhold

Introduction to Data Analysis in Python

Introduction to Data Analysis in Python

1. Basics
2. Data Types
3. Control Flow
4. Functions and Modules
5. Introduction to NumPy

book
Concatenation

Let's consider the operations you can do with strings.

First, you may write several lines together by concatenating them (using the + operator). If you need to write some number together with a string, you should convert a number to string by using the str() function.

123456
# Two strings and one number string_1 = "I would like to learn Python more than " number = 2 string_2 = " hours a day." # Connect parts together print(string_1 + str(number) + string_2)
copy

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 5
Vi beklager at noe gikk galt. Hva skjedde?
some-alt