Mastering Python Programming
Before we train a machine to learn, we need to teach it a language. Computers are very good at binary code since they were created to operate in zeros and ones. Human beings have invented a language compiler to compile a high-level language (such as Python) program into binary code so that a computer can run it. Python is a high-level language that is intuitive – it has a simplified syntax very similar to natural language. Python is widely used in solving problems using computer programming, especially in machine learning (ML).
In this chapter, we will start with a simple mathematical problem and show how Python can solve it directly and concisely. Understanding the solution will help us understand the Python basics, including variables, data structures, conditions, and controls. Then, we will cover Python’s data processing packages, including NumPy and Pandas for data manipulation and Matplotlib and Seaborn for data visualization.
...