1. Numeric Data Types in Python (int, float):
- Python supports two primary numeric data types:
intfor integers andfloatfor floating-point numbers. - Integers are whole numbers, and floats can represent both whole and fractional numbers.
- You can perform arithmetic operations on these types, including addition, subtraction, multiplication, division, and more.
- Be aware of potential issues with floating-point precision, which can lead to small inaccuracies in calculations.
- Python also provides built-in functions for mathematical operations, such as
abs(),round(), andmathmodule for advanced functions.