Assignment Python Colab
Assignment Python Colab
This assignment will help you practice Python basics and Google Colab features. You will write
code, use markdown, and explore libraries in an organized Colab notebook.
- Write a short introduction (2-3 lines) about what the notebook will demonstrate
3. Control Structures
- Write a loop to print numbers from 1 to 10
4. Functions
- Write a function to return the square of a number
- Write a function that accepts a list and returns only even numbers
import numpy as np
arr = np.array([1, 2, 3])
print(arr * 2)