100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Notas de lectura

College aantekeningen Programming (800863-M-3)

Puntuación
-
Vendido
-
Páginas
21
Subido en
26-06-2024
Escrito en
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.

Mostrar más Leer menos
Institución
Grado










Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Estudio
Grado

Información del documento

Subido en
26 de junio de 2024
Número de páginas
21
Escrito en
2023/2024
Tipo
Notas de lectura
Profesor(es)
C. van der lee
Contiene
Todas las clases

Temas

Vista previa del contenido

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 €
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
joymennings1 Vrije Universiteit Brussel
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
19
Miembro desde
3 año
Número de seguidores
2
Documentos
8
Última venta
9 meses hace

0,0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes