- AI Crash Course
- Hadelin de Ponteves
- 283字
- 2021-03-26 16:22:43
3 Python Fundamentals – Learn How to Code in Python
This chapter is for people who have little or no experience with the Python programming language. If you already know how to use for
/while
loops, methods, and classes in Python, you can skip this chapter and you shouldn't have any problems later on.
If, however, you have not used Python before, or have only barely used it, I strongly recommend that you follow this guide. You'll learn how to code the elements of Python I mentioned in the previous paragraph, you'll fully understand the codes included in this book and you'll be able to code in Python on your own. I'll also give you some additional exercises, called "homework" throughout the chapter, which I strongly recommend that you do.
Before you begin, open your Python editor. I recommend using the Google Colab notebook, introduced to you as part of your AI Toolkit in the previous chapter. All the code, along with homework solutions, are provided on the GitHub page of this book in Chapter 3
in their corresponding section folders. Inside them, you will find two Python files: one (named the same as the section) is the code used in this book, while the homework.py
file is the solution to the exercise. Instructions for each homework exercise will be provided at the end of each section.
In this chapter, we'll cover the following topics:
- Displaying text
- Variables and operations
- Lists and arrays
if
statements and conditionsfor
andwhile
loops- Functions
- Classes and objects
Especially if you're starting from scratch, cover each section in the order they're presented here, and remember to try your hand at the homework. Let's get started!
- 同步:秩序如何從混沌中涌現
- 虛擬化與云計算
- 大數據時代下的智能轉型進程精選(套裝共10冊)
- Oracle高性能自動化運維
- Python醫學數據分析入門
- 數據革命:大數據價值實現方法、技術與案例
- 數字媒體交互設計(初級):Web產品交互設計方法與案例
- 數據庫設計與應用(SQL Server 2014)(第二版)
- 新手學會計(2013-2014實戰升級版)
- SIEMENS數控技術應用工程師:SINUMERIK 840D-810D數控系統功能應用與維修調整教程
- Practical Convolutional Neural Networks
- 推薦系統全鏈路設計:原理解讀與業務實踐
- Redis 6開發與實戰
- 一本書講透數據治理:戰略、方法、工具與實踐
- 大學計算機:理解和運用計算思維