005.【Python Basics】 Calculate in Bulk

📊 You Can Calculate Many Values at Once with Python

Python is very good at
handling many numbers at the same time.

Here, we calculate the
V–I relationship in bulk
by changing the current step by step.


✅ What You Can Do


⚡ Demo: Bulk Calculation of V–I Data

import numpy as np

R = 100.0  # resistance [ohm]

I = np.linspace(0, 0.05, 50)  # current [A]
V = R * I                    # voltage [V]

print(V)

👀 What Is Happening

👉 The key idea is “calculate in bulk.”


💡 Key Points


📝 Summary

That understanding is enough.