reviews of learn python3 the hard way

本书通过大量练习帮助读者建立编程习惯,重点介绍了列表和字典等数据结构的使用方法。从循环创建列表到字典迭代,详细解析了Python编程中常见操作技巧。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值