Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Deal with Variables | Introduction to Python 1/2
Introduction to Python for Data Analysis
course content

Contenuti del Corso

Introduction to Python for Data Analysis

Introduction to Python for Data Analysis

1. Introduction to Python 1/2
2. Introduction to Python 2/2
3. Explore Dataset
4. Becoming an Analyst

book
Deal with Variables

Another crucial term for coding is variables. The variables are the way of storing information. For instance, here, number = 5, we assign 5 to the variable number. Here, string = 'cat', we assign the string 'cat' to the variable string. There are no special rules; you can create the name of a variable using numbers, special characters, or symbols, but the order is crucial! You can not start the name of a variable with numbers.

By the way, you can output several variables or strings and variables.

12
number = 3 print('The number of cats I have is', number)
copy

If you want the message not to be printed, just put the # sign at the beginning of the string; it is also called comment.

question mark

Choose the correct output of this code

Select the correct answer

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 2

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

course content

Contenuti del Corso

Introduction to Python for Data Analysis

Introduction to Python for Data Analysis

1. Introduction to Python 1/2
2. Introduction to Python 2/2
3. Explore Dataset
4. Becoming an Analyst

book
Deal with Variables

Another crucial term for coding is variables. The variables are the way of storing information. For instance, here, number = 5, we assign 5 to the variable number. Here, string = 'cat', we assign the string 'cat' to the variable string. There are no special rules; you can create the name of a variable using numbers, special characters, or symbols, but the order is crucial! You can not start the name of a variable with numbers.

By the way, you can output several variables or strings and variables.

12
number = 3 print('The number of cats I have is', number)
copy

If you want the message not to be printed, just put the # sign at the beginning of the string; it is also called comment.

question mark

Choose the correct output of this code

Select the correct answer

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 2
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt