Tutorial 1
Tutorial 1
What is programming ?
Programming = organizing tasks that a computer will do on
your behalf
The program tells the computer what to do using a series of
organized instructions
Instructions = computer words
All the instructions that a computer understands form a
language, we talk about programming language
We can ask the computer to perform a task with different
languages as much as we can talk to human beings with
different languages
Different programming languages offer different levels of
abstraction and/or of sophistication
CHBE 230 - Python Crash Course - Part I
Why do we program ?
Because the computer computes billions of times faster
that we do
However, remember the following
10. Create a 3x3 identity matrix and a 2x3 with 2s on the first row
and 4s on the second row. Print the 2 matrices
11. Extract the 2nd column vector of the 2x3 matrix, reshape it to a
column vector and print it
12. Vertically stack the 3x3 identity matrix on the top of the 2x3
matrix and print it
13. Delete the 2 first rows of the 5x3 matrix to make it square again.
Print the resulting 3x3 matrix
14. Compute the element-wise exponential of the 3x3 matrix using
vectorized computations and print it