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

Samenvatting van Inleiding Programmeren voor CIW

Rating
-
Sold
-
Pages
15
Uploaded on
07-10-2025
Written in
2024/2025

Dit is een samenvatting van de stof die besproken en behandeld is in het vak Inleiding Programmeren voor CIW. Dit vak wordt gegeven in het tweede jaar van de opleiding Communicatie- en Informatiewetenschappen.

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
October 7, 2025
Number of pages
15
Written in
2024/2025
Type
Summary

Subjects

Content preview

Programmeren
Assignment 1

Assignment 1
Chapter 1
#summing
print (3 + 2)
5

#subtracting
print (7 - 1)
6

#multiplication
print (3 * 3)
9

#division
print ()
3

#power
print (5 ** 2)
25

#percentage
print (10 % 3)
1 (3x3x3 = 9, hou 1 over)



Chapter 2
a_string = 'test' (for representing text)
an_integer =4 (for representing whole numbers)
a_float = 3.14 (for representing numbers with decimals)
a_tuple = (2,5) (for representing immutable combinations of values)
a_list = [1,2,3,1,2,3,'a','b','c'] (for representing ordered sequences of objects)
a_set = {1,2,3,4,'apple'} (for representing unordered sets of objects)
a_dict ={x} (to represent mappings between objects)
a_function = print (to manipulate objects, or to produce new objects given some input )
a_bool = True (to represent the truth values True or False)

, Chapter 3



Chapter 4
Comparison operators
Operator Meaning True False

== Equal 2 == 2 3=2

!= Not equal 3 != 2 2 != 2

< Less than 2 < 13 2<2

<= Less than or equal to 2 <= 2 3 <= 2

> Greater than 13 > 2 2 > 13

>= Greater than or equal to 3 => 2 2 >= 3


Membership operators
Operator Function True False

in Left object is a member of right object 2 == 2 3=2

not in Left object is NOT a member of right object 3 != 2 2 != 2


And, or and not
Operation Function

bool1 AND bool2 True if bool1 and bool2 are True, otherwise False

bool1 OR bool2 True when at least one of the boolean expressions is True, otherwise False

NOT bool1 True if bool 1 is False, otherwise False
$7.19
Get access to the full document:

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


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
thijnlerou Tilburg University
Follow You need to be logged in order to follow users or courses
Sold
13
Member since
9 months
Number of followers
0
Documents
19
Last sold
5 hours ago

4.0

2 reviews

5
1
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