100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
College aantekeningen

College aantekeningen Programming (800863-M-3)

Beoordeling
-
Verkocht
-
Pagina's
21
Geüpload op
26-06-2024
Geschreven in
2023/2024

Aantekeningen van het vak RS: Programming van de opleiding Communicatie- en Informatiewetenschappen aan Tilburg University. Aangevuld met aantekeningen uit de oefeningen en van verplichte wetenschappelijke artikels. Het document is in het Engels geschreven.

Meer zien Lees minder










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Documentinformatie

Geüpload op
26 juni 2024
Aantal pagina's
21
Geschreven in
2023/2024
Type
College aantekeningen
Docent(en)
C. van der lee
Bevat
Alle colleges

Onderwerpen

Voorbeeld van de inhoud

Summary Programming
Lecture 1 (30/01/2024)................................................................................3
What is Python?........................................................................................3
Using Python as a calculator.....................................................................3
Data types................................................................................................4
Boolean values..........................................................................................4
If statements.............................................................................................4
Lecture 2 (06/02/2024)................................................................................4
Value collections.......................................................................................4
Container sequences................................................................................5
Lists.......................................................................................................5
Dictionaries............................................................................................6
Loops........................................................................................................6
Functions...................................................................................................7
Lecture 3 (20/02/2024)................................................................................7
String manipulation...................................................................................7
Membership test operation.......................................................................8
Regular expressions..................................................................................9
Process...................................................................................................9
Metacharacters......................................................................................9
Repeating.............................................................................................11
Match types.........................................................................................11
Grouping..............................................................................................12
Lecture 4 (27/02/2024)..............................................................................12
Text files..................................................................................................12
Opening and closing a text file............................................................13
Functions in a text file..........................................................................13
Organizing and scanning directories/files............................................14
Lecture 5 (05/03/2024)..............................................................................15
Using Python to work with files...............................................................15
Spreadsheets.......................................................................................15
Installing libraries....................................................................................15


1

, Working with openpyxl............................................................................16
Reading files........................................................................................16
Creating an excel file...........................................................................16
Lecture 6 (12/03/2024)..............................................................................17
Csv files...................................................................................................17
Excel file to CSV and the other way around.........................................17
Opening csv files..................................................................................17
Writing csv files....................................................................................18
Json files..................................................................................................18
Opening json files................................................................................18
Writing json files..................................................................................19
Lecture 7 (19/03/2024)..............................................................................19
Important themes during the exam........................................................19
About the exam......................................................................................20
Links to use................................................................................................20




2

, Lecture 1 (30/01/2024)
What is Python?
Python is a programming language. It can do some calculations but is
more than just a regular calculator. It has a certain grammar. If you don’t
use the correct grammar, it will give an error.


Using Python as a calculator
Important to know are:
 Operator: these are special symbols that indicate that some sort of
computation should be performed. The operator operates on
values/operands. There are different types of operators:
o Arithmetic operators:
 Exponent: **
For example: 2 ** 3 = 8
 Modulus/remainder: %
For example: 22 % 8 = 6
 Integer division/floored quotient: //
For example: 22 // 8 = 2
 Division: /
For example: = 2.75
 Multiplication: *
For example: 3 * 5 = 15
 Subtraction: -
For example: 5 – 2 = 3
 Addition: +
For example: 2 + 2 = 4
o Comparison operators: these values are used to compare
and evaluate down to a single Boolean value.
 Equal to: ==
 Not equal to: ! =
 Less than: <
 Greater than: >
 Less than or equal to: < =
 Greater than or equal to: > =
 Value: these are also called operands. This is what the operator
acts on.
 Expression: a sequence of operands and operators. This is the total
sum.
 Evaluation: reducing the expression down to a single value. This is
the answer you’ll get in the end.
 Variables: we can store a value in a variable. It is basically like
saving a (temporary) file, storing it for later. For example: spam =
42. The variable spam now has the integer value 42 in it.
 Expression statement: this states that something is something.

3
€7,16
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
joymennings1 Vrije Universiteit Brussel
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
19
Lid sinds
3 jaar
Aantal volgers
2
Documenten
8
Laatst verkocht
8 maanden geleden

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen