

Fonctions Prédéfinies en Python
Flashcard
•
Science
•
2nd Grade
•
Practice Problem
•
Hard
Tarhouni Imen
FREE Resource
Student preview

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Fonction retournant l'entier le plus proche d'un nombre en Python
Back
La fonction `round(x)` retourne l'entier le plus proche d'un nombre en Python.
2.
FLASHCARD QUESTION
Front
Fonction retournant la racine carrée d'un nombre positif en Python
Back
La fonction `sqrt(x)` retourne la racine carrée d'un nombre positif en Python.
3.
FLASHCARD QUESTION
Front
Fonction retournant un entier aléatoire dans un intervalle donné en Python
Back
La fonction `randint(vi, vf)` retourne un entier aléatoire dans l'intervalle [vi, vf] en Python.
4.
FLASHCARD QUESTION
Front
Fonction retournant la valeur absolue d'un nombre en Python
Back
La fonction `abs(x)` retourne la valeur absolue d'un nombre en Python.
5.
FLASHCARD QUESTION
Front
Fonction retournant le caractère correspondant à un code ASCII en Python
Back
La fonction `chr(d)` retourne le caractère correspondant à un code ASCII en Python.
6.
FLASHCARD QUESTION
Front
Exemple d'utilisation de la fonction `round` en Python
Back
`n = round(2.75)` ➔ `n = 3`
7.
FLASHCARD QUESTION
Front
Retourne le nombre de caractères de la chaîne ch.
Back
En algorithmique : Long(ch) En Python : len(ch) Exemple : n ← Long("Bonjour") ➔ n=7 n = len("Bonjour") ➔ n=7
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?