reviews of learn python3 the hard way

Almost every time,I try my best to write a long review of the book I have read. But this time I want to have a short one.
learn python3 the hard way is a book which will teach you how to start to write codes. It has many exercises,through which you can build your habits of writing codes, revising codes, etc. Try hard as you may to type every character by yourself and you will gain more!
That‘s it!

I have read learn python the hard way last year, so this time I select sections on lists and dictionaries only.
## Data structure:lists
### exercise 32:loop and lists
1. How to make a list by loop?
2. How to add element to a list?
3. How can I test a method like append?

###exercise 38: doing things to lists
A list is an ordered list of things you want to store and access randomly or linearly by an index.
1. What lists can do?
2. Why do we need lists?
3. Can you show me some examples of lists in real world?
4. How can you get some items in lists?
## Data structure:dictionaries
### Exercise 39:dictionaries, oh, lovely dictionaries
1. What is the difference between a dictionary and a list?
2. How to iterate to print all the items in a dictionary?
3. How to add new items to a dictionary?
4. How to get an ordered dictionary?

## Head first python
I want to introduce you a new book, /head first python/.
https://docs.python.org/3/tutorial/index.html

原文地址:https://www.cnblogs.com/viphhs/p/9131534.html

时间: 2024-08-05 04:07:51

reviews of learn python3 the hard way的相关文章

[IT学习]Learn Python the Hard Way (Using Python 3)笨办法学Python3版本

黑客余弦先生在知道创宇的知道创宇研发技能表v3.1中提到了入门Python的一本好书<Learn Python the Hard Way(英文版链接)>.其中的代码全部是2.7版本. 如果你觉得英文版看着累,当当网有中文版,也有电子版可以选择. 我试着将其中的代码更新到Python 3.同时附上一些自己的初学体会,希望会对你有帮助. 中文版有人把书名翻译为<笨办法学python>,其实我觉得叫做<学Python,不走寻常路>更有意思些. 作者的意思你可以在序言中详细了解

How to learn Python

https://www.udemy.com/python-programming-for-real-life-networking-use/ https://pynet.twb-tech.com/blog/python/books-beginners.html Python Book Recommendations for Beginners (2014-01-17) By Kirk Byers You have decided to learn Python, but which Python

Python3《机器学习实战》学习笔记

运行平台: Windows Python版本: Python3.x IDE: Sublime text3 一 简单k-近邻算法 1 k-近邻法简介 2 距离度量 3 Python3代码实现 31 准备数据集 32 k-近邻算法 33 整体代码 二 k-近邻算法实战之约会网站配对效果判定 1 实战背景 2 准备数据数据解析 3 分析数据数据可视化 4 准备数据数据归一化 5 测试算法验证分类器 6 使用算法构建完整可用系统 三 k-近邻算法实战之sklearn手写数字识别 1 实战背景 2 Skl

apache2.4 +django1.9+python3+ubuntu15.10

这是我这几天学习部署django的总结,中间出现了不少的问题.特此记录下来,用来复习巩固,同时也希望给想学习的同学一些参考. 第一步:我在ubuntu上装的是python3.sudo apt-get install python3,这种方法不用设置环境变量.如果机器上python2和python3都有,为了方便可以修改python的默认版本 ,具体命令如下: #先备份 sudo cp /usr/bin/python /usr/bin/python_bak. #删除sudo rm /usr/bin

基于Python3 神经网络的实现

基于Python3 神经网络的实现 本次学习是Denny Britz(作者)的Python2神经网络项目修改为基于Python3实现的神经网络(本篇博文代码完整).重在理解原理和实现方法,部分翻译不够准确,可查看Python2版的原文.原文英文地址(基于Python2) 概述如何搭建开发环境 安装Python3.安装jupyter notebook以及其他科学栈如numpy pip install jypyter notebook pip install numpy 生成测试数据集 # 导入需要

python3安装 feedparser

在看<集体智慧编程>时碰到python3环境下安装feedparser的问题,搜索发现很多人碰到此问题,最终找以下方法解决. how to install feedparser on python3 Approach A: Using Pip The best method for installing FeedParser (or almost any Python package) is by using pip, Python's package manager. pip will be

Python3 内建模块 hashlib、itertools、HTMLParser、urllib

Python的hashlib提供了常见的摘要算法,如MD5,SHA1等等. 什么是摘要算法呢?摘要算法又称哈希算法.散列算法.它通过一个函数,把任意长度的数据转换为一个长度固定的数据串(通常用16进制的字符串表示). 举个例子,你写了一篇文章,内容是一个字符串'how to use python hashlib - by Michael',并附上这篇文章的摘要是'2d73d4f15c0db7f5ecb321b6a65e5d6d'.如果有人篡改了你的文章,并发表为'how to use pytho

Nike Kyrie 4 &quot;Confetti&quot; Pefromance Reviews

Now the  Nike Kyrie 4 "Confetti" the colorful pair was released today .  and the Christmas holiday is coming , a lot of people  would like to buy this one as the gift . and now that Kyrie Irving has said goodbye to his third sneaker, so maybe th

python3 _笨方法学Python_日记_DAY5

Day5 习题  24:  更多练习 1 print("Let's practice everything.") 2 print('You\'d need to know \'bout escapes with \\ that do \n newlines and \t tabs.') 3 4 poem = """ 5 \tThe lovely world 6 with logic so firmly planted 7 cannot discern \n