Gas is the computational cost required to execute operations on the Ethereum network. Every operation in Solidity has a gas cost, and users must pay gas fees to execute transactions.
Key concepts:
Gas Limit: Maximum gas a transaction can consume
Gas Price: Amount of Ether willing to pay per unit of gas
Gas Used: Actual gas consumed by the transaction
Different operations have different gas costs:
Simple operations (addition): ~3 gas
Storage operations (SSTORE): ~5,000-20,000 gas
Contract creation: ~32,000 gas + deployment code
Rewriting in plainer words…
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.