Rédigé par des étudiants ayant réussi Disponible immédiatement après paiement Lire en ligne ou en PDF Mauvais document ? Échangez-le gratuitement 4,6 TrustPilot
logo-home
Document preview thumbnail
Aperçu 4 sur 43 pages
Resume

Samenvatting informatica

Document preview thumbnail
Aperçu 4 sur 43 pages

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.

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)

Infos sur le Document

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

Mauvais document ? Échangez-le gratuitement Dans les 14 jours suivant votre achat et avant le téléchargement, vous pouvez choisir un autre document. Vous pouvez simplement dépenser le montant à nouveau.
Rédigé par des étudiants ayant réussi
Disponible immédiatement après paiement
Lire en ligne ou en PDF

Vendu
0
Abonnés
0
Éléments
1
Dernière vente
-



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