At full speed with Python: a book for self-learners
github.com
github.com
This applies almost equally to most language reference material I've come across but I'm asking politely, please spend more time on the toolchain.
I have a chapter about the python installation in this book but in the documents I usually give to my students I also explain how to use pip and virtualenv. I may add something about the basic tooling, at least enough so that people can get up to speed with python.
Edit: removed "spent an entire chapter on the python installation".
I am glad to see you are basing things on Python 3.
* create sub-headings, for ex: 'Basic datatypes' chapter, create numbers/strings/lists as sub-headings...
* loop iteration - as you are anyway showing how to use 'enumerate', I'd suggest to not show 'range(len(mylist))'
* lots of ' Finally', might want to remove some or rework those sentences
----
Resources similar to this, but full fledged books
* http://greenteapress.com/wp/think-python-2e/
* http://openbookproject.net/thinkcs/python/english3e/ - based on think python
* https://automatetheboringstuff.com/
and for exercises (disclaimer: these are from my github repo):
* https://github.com/learnbyexample/scripting_course/blob/mast...
* https://github.com/learnbyexample/Python_Basics/blob/master/...
The simplicity of the build system for epub is impressive: https://github.com/joaoventura/full-speed-python/blob/master...
I discovered Pandoc in the past few months thanks to a post on HN, and I've been going out of my way to involve it in my projects because it's so fascinating to me.
Pandoc: https://pandoc.org/
Every time I tried to generate mobi files from Tex they were terrible formatted. O'Reilly does it fine with some open source books, but I've never managed to do it myself. Are the good publishing tools for ebooks just avaiable for specialized publishers?
Which techniques do you have to convert these Tex books to mobi (the Kindle format)?
Epub and mobi formats would be great
In all, I've converted 3 PDFs to Kindle format -- one is OK, one is a slog to read, and the third I forgot I was reading a converted version. Have never tried using it to convert a LaTeX-generated document of my own, though.
pandoc \
book.tex \
chapters/basic-datatypes.tex \
chapters/classes.tex \
chapters/dictionaries.tex \
chapters/functions.tex \
chapters/installation.tex \
chapters/introduction.tex \
chapters/loops.tex \
-o full-speed-python.epub
(you may replace .epub with .mobi to get that file format, but it seems to not support TeX math properly)I would like to convey the idea that this is a fast way for people to learn the basic concepts of python. But I'm not sure that "up to speed with X" exists, as I cant find many ocurrences of it in google (i'm not a english native speaker, this is the technique i use to find how certain expressions are used in english).
Sorry for the Portuguese translation foreigners. But since I noticed you are from Setubal, Portugal.
"At full speed with python" -> "Chegar á velocidade máxima com Python."
"Up to speed with python" -> "Chega a velocidade desejada com Python."
(Changed the book title to match..)
Be aware that the approach this book takes has its own type of target audience. I guess the audience that will like this book/tutorial are the kind of people that will usually just read the entire reference manual of anything to see what's in their toolbox before actually starting to build something. So by reading it, you help them as a guide to work through it, choosing the parts of the language that are best learned first. After following the exercises, the reader can already build some programs using those concepts, whatever it might be, leaving it to their own imagination.
The other type of audience, which this book might be less suited for, is people who get bored after chapter 1, thinking "I want to build something fun now already!". Those might be better served by a tutorial like "we're building a XYZ game", explaining concepts along the way.
Both are good, both are needed.
I'm one of the first type of people, so I'm really happy to see this kind of book. The second type of tutorials only give me fragments of information if I follow it building that XYZ game, while I have my own idea of what to build, and just want to learn how those lists and dictionaries work when I discover I need them. ;-]
I do not know how I could integrate that in this book specifically, because it is not something that a regular user would need to know to be able to use Python per se, but I would like to publish something eventually. Maybe something like "up to speed with socket programming in python".. :)
Basically, I give my students two files (client.py and server.py) with a basic and very simple use of sockets, and guide them to build a basic shell client app that sends messages to be evaluated by the server and to receive the result back.
Other is a very basic http server with sockets. These are not production-ready things, I'm just interested that they learn the concepts. You can check something about this http server in this blog post of mine: http://joaoventura.net/blog/2017/python-webserver/
Cannot change anymore the title or the link on HN though..
\documentclass[12pt, a4paper, oneside]{book}
It has to be ran with pdflatex..I tried in Chrome/IE/Acrobat and the text is blurry for me, anyone else have this problem??