Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4.2 TrustPilot
logo-home
Resume

Samenvatting informatica

Note
-
Vendu
-
Pages
43
Publié le
18-08-2025
Écrit en
2024/2025

Dit is een samenvatting van alle te kennen methodes of functies in de API van 1ste bachelor industriële wetenschappen. Ook alle andere leerstof van dit vak staat in de samenvatting. De prof die dit vak geeft is Helga Naessens.












Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

Infos sur le Document

Publié le
18 août 2025
Nombre de pages
43
Écrit en
2024/2025
Type
Resume

Aperçu du contenu

SAMENVATTING INFORMATICA
Deze gids bevat een uitgebreide uitleg van alle Python-functies, databanken-functies, HTML-
tags en CSS-eigenschappen uit het oorspronkelijke API-document. Elke functie/tag/eigenschap
wordt beschreven met wat je erin stopt, wat eruit komt, wat er gebeurt, en bevat voorbeeldcode
of gebruik. Ook basiskennis over informatica staat hier samengevat.


Python

Standaard python functies

abs()

invoer: int of float
uitvoer: int of float
wat: absolute waarde
voorbeeld: abs(-5) # 5

input()

invoer: str of niet
uitvoer: str
wat: vraagt invoer aan gebruiker
voorbeeld: naam = input(“wat is uw naam? “)

open()

invoer: “name”, “mode” : r , w , a
uitvoer: bestand
wat: opent een bestand
voorbeeld: f = open(“bestand.txt” , “r”)


print()

invoer: object, end, file
uitvoer: geen
wat: print naar scherm of bestand
voorbeeld: print(“Hallo” , end = “!”)

,type()

invoer: object
uitvoer: type
wat: geeft het type terug
voorbeeld: type(5) # class ‘int’
bool()

invoer: x
uitvoer: type
wat: zet om naar boolean
voorbeeld: Functie leeg of nul

float() , int() , str()

invoer: x
uitvoer: float, int , str
wat: variabele omzetten naar een float , int of str
voorbeeld: int(“5”) # 5 float(5) # 5.0 str(5) # “5”

list()

invoer: iterable
uitvoer: list
wat: geeft het list terug
voorbeeld: lijst = list(tekst) # ['h', 'a', 'l', 'l', 'o']



tuple()

invoer: iterable
uitvoer: tuple
wat: geeft het tuple terug
voorbeeld: tuple_vorm = tuple(tekst) # ('h', 'a', 'l', 'l', 'o')



ord()

invoer: str
uitvoer: int
wat: geeft unicode van teken terug
voorbeeld: ord(“A”) # 65

,chr()

invoer: int
uitvoer: str
wat: geeft teken van unicode terug
voorbeeld: ord(65) # “A”


len()

invoer: list of string
uitvoer: int
wat: geeft lengte van string of list terug
voorbeeld: len(“Abcdefg”) # 7



round()

invoer: int of float
uitvoer: int of float
wat: rond een getal af
voorbeeld: round( 5.6547 , 2) # 5. 65



range()

invoer: int
uitvoer: range
wat: reeks getallen genereren
voorbeeld: i in range(5) # 0 1 2 3 4 i in range( 2 , 10 , 2) # 2 4 6 8



min() max()

invoer: iterable
uitvoer: int , float
wat: geeft minimum of maximum terug
voorbeeld: min(list) max(“string”) # max volgens ascii



min()

invoer: iterable
uitvoer: int of float
wat: geeft som terug
voorbeeld: sum(getallen, 100) of sum(getallen)

, enumerate()

invoer: iterable
uitvoer: iterable
wat: geeft index + waarde
voorbeeld: enumerate(dieren, start=1)
sorted()

invoer: iterable
uitvoer: list
wat: geeft gesorteerde lijst terug
voorbeeld: sorted(getallen) of sorted(getallen, reverse=True)


Module Random

randint()

invoer: int , int
uitvoer: int
wat: Willekeurig geheel getal tussen a en b
voorbeeld: random.randint(1,10)

random()

invoer: geen
uitvoer: float
wat: Willekeurig getal tussen 0 en 1
voorbeeld: random.random()

choice()

invoer: iterable , list vooral
uitvoer: int, float, …
wat: Willekeurig element kiezen
voorbeeld: random.choice(kleuren)

shuffle()

invoer: iterable , list vooral
uitvoer: none
wat: Lijst in willekeurige volgorde plaatsen
voorbeeld: random.shuffle(kaarten)
€5,49
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur
Seller avatar
sennevergote123

Faites connaissance avec le vendeur

Seller avatar
sennevergote123 Universiteit Gent
Voir profil
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
0
Membre depuis
2 année
Nombre de followers
0
Documents
1
Dernière vente
-

0,0

0 revues

5
0
4
0
3
0
2
0
1
0

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions