Cours - Les Basiques Flashcards

1
Q

Les entiers

A

int

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Nombre à virgule

A

Float

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or False

A

Bool

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Les chaînes de caractères

A

str

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

addition

A

+

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Soustraction

A

-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Multiplication

A

*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Division

A

/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Puissance

A

**

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Affichage

A

Print(…)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Égalité

A

==

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Strictement plus grand

A

>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Strictement plus petit

A

<

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Plus grand ou égal

A

> =

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Plus petit ou égal

A

<=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Différent

A

!=

17
Q

Et

A

And

18
Q

Ou

A

Or

19
Q

Not

A

Non

20
Q

Si

A

If

21
Q

Sinon si

A

Elif

22
Q

Else

A

Sinon

23
Q

Liste des entiers de 0 à a-1

A

Range(a)

24
Q

Liste des entiers de a à b-1

A

Range(a,b)

25
Q

La liste des entiers de a à a-b de c en c

A

Range(a,b,c)

26
Q

Tant que

A

While

27
Q

Pour…dans

A

For…in

28
Q

Définition liste

A

Une série de valeurs séparés par des virgules et encadrées par des crochets

29
Q

Liste vide

A

[]

30
Q

Renvoie le nombre d’éléments d’une liste

A

Len

31
Q

Renvoie l’élément de rang i de liste

A

liste[i]

32
Q

Ajouter un élément a la fin d’une liste

A

Liste.Append()