Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4,6 TrustPilot
logo-home
Summary

Samenvatting Programmeren in Python

Rating
-
Sold
1
Pages
29
Uploaded on
03-02-2025
Written in
2022/2023

Geslaagd! Dit document bevat een samenvatting voor het vak programmeren in python, 1ste semester 1ste bachelor biomedische wetenschappen aan de universiteit van Gent. Het vak werd gegeven door Prof Vermeirssen. Het bevat alles uit de theorie en de werkcolleges.

Show more Read less
Institution
Course

Content preview

Samenvatting programmeren in
python

, Programmeren in Python



Werkcollege 1: Variabelen, operatoren, functies, if

• Variabelen

= een manier om woordjes op te slaan
= veranderlijke gegevens bewaren in een programma
= gebruikt om andere uitdrukkingen te maken
à Waarden toevoegen zoals woorden, getallen, complexe zaken
à Letters, cijfers, _
à Gevolgd door =

o Aanmaken van variabelen

à Waarden toevoegen zoals woorden, getallen, complexe
zaken
à Letters, cijfers, _
à Gevolgd door =
à een uitdrukking is een stukje code dat een resultaat kan
geven, het resultaat wordt opgeslagen om later te gebruiken




We kunnen de twee getallen optellen en de tekst weergeven
via:

à Voor de getallen op te tellen gebruiken we onze twee
variabelen x en y met de + operator

à Voor de tekst gebruiken we de functie print()

, o Type variabele

à Automatisch gedefinieerd door python
• Int = integer
o Geheel getal
o + zal de getallen optellen
• Str = string
o Tekst
o ‘’ of “”
o + zal de getallen
aan elkaar plakken
o concatenation
• Float = floating point
o Kommagetallen
• Bool = Boolean
o True or False
o Hoofdletter
o Geen aanhalingstekens

à Type bepalen
Adhv type()



Bij var3 à e = 10^x met x
hier = 6

Written for

Institution
Study
Course

Document information

Uploaded on
February 3, 2025
Number of pages
29
Written in
2022/2023
Type
SUMMARY

Subjects

R176,31
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
emmavandecasteele1

Get to know the seller

Seller avatar
emmavandecasteele1 Universiteit Gent
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
2 year
Number of followers
0
Documents
6
Last sold
1 year ago

0,0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions