how can i really get started from this book

the getting started section of this book did not tell me how to start the program and write the codes. just show up two lines of codes. i typed those on my command line python in linux. It is just not working.

I do not think this book is good for a beginner like me.