NumPy Array Example in Colab - Google-colab Typing CST Test
Loading…
NumPy Array Example in Colab — Google-colab Code
Create a NumPy array and print its shape.
import numpy as np
arr = np.array([[1,2,3],[4,5,6]])
print(arr.shape)Google-colab Language Guide
Google Colab is a cloud-based Jupyter notebook environment that allows users to write, execute, and share Python code in the browser. It provides free access to GPUs and TPUs, making it ideal for machine learning, data analysis, and scientific computing.
Primary Use Cases
- ▸Learning Python programming
- ▸Machine learning and deep learning experiments
- ▸Data analysis with pandas, NumPy, and visualization libraries
- ▸Collaborative notebook sharing for tutorials and research
- ▸Prototyping scripts requiring GPU/TPU acceleration
Notable Features
- ▸Supports Python 3.x with popular data science libraries pre-installed
- ▸Access to free GPU and TPU resources
- ▸Integration with Google Drive for storage and collaboration
- ▸Interactive notebook interface supporting markdown, code, and visualizations
- ▸Shareable notebooks with read/write permissions
Origin & Creator
Google Colab is maintained by Google Research, designed to provide an accessible, cloud-hosted Python notebook environment without requiring local setup.
Industrial Note
Primarily used by data scientists, machine learning practitioners, and researchers for prototyping, experiments, and collaborative coding. Not intended for deploying production services.