100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Samenvatting inleiding in Python

Rating
3.0
(1)
Sold
2
Pages
4
Uploaded on
06-05-2021
Written in
2020/2021

Samenvatting van de stof voor het vak 'Inleiding in Python' van het eerste jaar van de studie Technische Bestuurskunde op de TU Delft. De stof bestaat uit alle Jupyter notebooks en de powerpoint slides.

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Course

Document information

Uploaded on
May 6, 2021
Number of pages
4
Written in
2020/2021
Type
Summary

Subjects

Content preview

Samenvatting programmeren in python
TB133C

Week 1
Twee soorten cellen  markdown (voor tekst) en code cel (waar je daadwerkelijk in
programmeert)

Functie print(): print tekst of variabele, bij tekst moet je aanhalingstekens zetten zoals
print(‘Hello’)

# : er wordt niet geprogrammeerd wanneer er dit staat voor een zin. Gebruiken om
tussendoor uit te leggen

Help(): Python geeft zelf een uitleg van een bepaalde functie of conditie in python.

Rekenen:
- Optellen met +
- Aftrekken met –
- Vermenigvuldigen met *
- Delen met /
- ‘wat er overblijft’ na delen met % (10 % 4 = 2)

Type(): python print welke functie een waarde heeft
- Nummers afgerond  integer
- Nummers met decimale punt  float
- Tekst  string

Week 2
Booleaanse uitdrukkingen  goed of fout, door middel van is gelijk aan (==) checken of dit
inderdaad zo is. Type van true en false is bool.
- ==  is gelijk aan
- !=  is niet gelijk aan
- <  kleiner dan
- >  groter dan
- >=  groter dan of gelijk aan
- <=  kleiner dan of gelijk aan

/ : delen
// : delen zonder cijfers achter de komma (5//2 = 2)

If condition  if … : dan print of doe dit, elif (of als) … : dan print of doe dit, anders: print of
doe dit.

Loops  hoofdstuk 4 en 7 in boek

Loops: herhalen iets een bepaald aantal keren of itereren over een collectie van items.
 for i in a: doe iets, meest voorkomend is for i in range(x)
$6.01
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
MvanB
3.0
(1)

Reviews from verified buyers

Showing all reviews
2 year ago

3.0

1 reviews

5
0
4
0
3
1
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
MvanB Technische Universiteit Delft
Follow You need to be logged in order to follow users or courses
Sold
8
Member since
4 year
Number of followers
6
Documents
11
Last sold
8 months ago

3.0

1 reviews

5
0
4
0
3
1
2
0
1
0

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 tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card 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