frontpage.asciidoc 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  1. [[frontpage]]
  2. == Welcome
  3. //////////////////////////////////////////////////
  4. This book is written for Python 2 series, even though Python 3 series is the latest. You can read
  5. more about why in the <<python2vs3,Python 2 vs. 3>> section.
  6. //////////////////////////////////////////////////
  7. [[who_reads_bop]]
  8. === Who reads A Byte of Python?
  9. Here are what people are saying about the book:
  10. [quote,'mailto:wmich50@theramp.net[Walt Michalik]']
  11. __________________________________________________
  12. This is the best beginner's tutorial I've ever seen! Thank you for your effort.
  13. __________________________________________________
  14. [quote,'mailto:joshrob@poczta.onet.pl[Joshua Robin]']
  15. __________________________________________________
  16. The best thing i found was "A Byte of Python", which is simply a brilliant book for a
  17. beginner. It's well written, the concepts are well explained with self evident examples.
  18. __________________________________________________
  19. [quote,'https://twitter.com/ShanRajasekaran/status/268910645842423809[Shan Rajasekaran]']
  20. __________________________________________________
  21. Excellent gentle introduction to programming #Python for beginners
  22. __________________________________________________
  23. [quote,'https://twitter.com/nickaigi/status/175508815729541120[Nickson Kaigi]']
  24. __________________________________________________
  25. Best newbie guide to python
  26. __________________________________________________
  27. [quote,'https://twitter.com/HerbertFeutl/status/11901471389913088[Herbert Feutl]']
  28. __________________________________________________
  29. start to love python with every single page read
  30. __________________________________________________
  31. [quote,'https://twitter.com/Dili_mathilakam/status/220033783066411008[Dilip]']
  32. __________________________________________________
  33. perfect beginners guide for python, will give u key to unlock magical world of python
  34. __________________________________________________
  35. [quote,'https://twitter.com/BiologistJohn/statuses/194726001803132928[Biologist John]']
  36. __________________________________________________
  37. I should be doing my actual "work" but just found "A Byte of Python". A great guide with great
  38. examples.
  39. __________________________________________________
  40. [quote,'https://twitter.com/mangeshnanoti/status/225680668867321857[Mangesh]']
  41. __________________________________________________
  42. Recently started reading a Byte of python. Awesome work. And that too for free. Highly recommended
  43. for aspiring pythonistas.
  44. __________________________________________________
  45. [quote,'http://apas.gr/2010/04/27/learning-python/[Apostolos]']
  46. __________________________________________________
  47. A Byte of Python, written by Swaroop. (this is the book I'm currently reading). Probably the best
  48. to start with, and probably the best in the world for every newbie or even a more experienced user.
  49. __________________________________________________
  50. [quote,'https://twitter.com/YuvrajPoudyal/status/448050415356346368[Yuvraj Sharma]']
  51. __________________________________________________
  52. Enjoying Reading #ByteOfPython by @swaroopch best book ever
  53. __________________________________________________
  54. [quote,Franklin]
  55. __________________________________________________
  56. Thank you so much for writing A Byte Of Python. I just started learning how to code two days ago
  57. and I'm already building some simple games. Your guide has been a dream and I just wanted to let
  58. you know how valuable it has been.
  59. __________________________________________________
  60. [quote,Madhura]
  61. __________________________________________________
  62. I'm from Dayanandasagar College of Engineering (7th sem, CSE). Firstly i want to say that your book
  63. "The byte of python" is too good a book for a beginner in python like me.The concepts are so well
  64. explained with simple examples that helped me to easily learn python. Thank you so much.
  65. __________________________________________________
  66. [quote,Matt]
  67. __________________________________________________
  68. I am a 18 year old IT student studying at University in Ireland. I would like to express my
  69. gratitude to you for writing your book "A Byte of Python", I already had knowledge of 3 programming
  70. langagues - C, Java and Javascript, and Python was by far the easiest langague I have ever learned,
  71. and that was mainly because your book was fantastic and made learning python very simple and
  72. interesting. It is one of the best written and easy to follow programming books I have ever
  73. read. Congratulations and keep up the great work.
  74. __________________________________________________
  75. [quote,'mailto:pavel.simo@gmail.com[Pavel Simo]']
  76. __________________________________________________
  77. Hi, I'm from Dominican Republic. My name is Pavel, recently I read your book _A Byte of Python_ and
  78. I consider it excellent!! :). I learnt much from all the examples. Your book is of great help for
  79. newbies like me...
  80. __________________________________________________
  81. [quote,Roy Lau]
  82. __________________________________________________
  83. I am a student from China, Now ,I have read you book A byte of Python, Oh it's beautiful. The book
  84. is very simple but can help all the first learnners. You know I am interesting in Java and cloud
  85. computing many times, i have to coding programm for the server, so i think python is a good choice,
  86. finish your book, i think its not only a good choice its must use the Python. My English is not
  87. very well, the email to you, i just wanna thank you! Best Wishes for you and your family.
  88. __________________________________________________
  89. [quote,'mailto:sy137@gmail.com[Samuel Young]']
  90. __________________________________________________
  91. I recently finished reading Byte of Python, and I thought I really ought to thank you. I was very
  92. sad to reach the final pages as I now have to go back to dull, tedious oreilly or etc. manuals for
  93. learning about python. Anyway, I really appreciate your book.
  94. __________________________________________________
  95. [quote,'mailto:jduarte1@cfl.rr.com[Joseph Duarte]']
  96. __________________________________________________
  97. Dear Swaroop, I am taking a class from an instructor that has no interest in teaching. We are using
  98. Learning Python, second edition, by O'Reilly. It is not a text for beginner without any programming
  99. knowledge, and an instructor that should be working in another field. Thank you very much for your
  100. book, without it I would be clueless about Python and programming. Thanks a million, you are able
  101. to _break the message down_ to a level that beginners can understand and not everyone can.
  102. __________________________________________________
  103. [quote,Chris-André Sommerseth]
  104. __________________________________________________
  105. I love your book! It is the greatest Python tutorial ever, and a very useful reference. Brilliant,
  106. a true masterpiece! Keep up the good work!
  107. __________________________________________________
  108. [quote,'https://github.com/swaroopch/byte_of_python/pull/13[myd7349]']
  109. __________________________________________________
  110. First of all, I want to say thanks to you for this greate book. I think it is a good book for those
  111. who are looking for a beginner's tutorial for Python.
  112. It is about two or there years ago, I think, when I first heard of this book. At that time, I am
  113. not able to read some book in English yet, so I got a chinese translation, which took me into the
  114. gate of Python programming.
  115. Recently, I reread this book. This time, of course, the english version. I couldn't believe that I
  116. can read the whole book without my dictionary at hand. Of course, it all dues to your effort to
  117. make this book an easy-to-understand one.
  118. __________________________________________________
  119. [quote,'mailto:m_gallivan12@hotmail.com[Matt Gallivan]']
  120. __________________________________________________
  121. I'm just e-mailing you to thank you for writing Byte of Python online. I had been attempting
  122. Python for a few months prior to stumbling across your book, and although I made limited success
  123. with pyGame, I never completed a program.
  124. Thanks to your simplification of the categories, Python actually seems a reachable goal. It seems
  125. like I have finally learned the foundations and I can continue into my real goal, game development.
  126. ...
  127. Once again, thanks VERY much for placing such a structured and helpful guide to basic programming
  128. on the web. It shoved me into and out of OOP with an understanding where two text books had
  129. failed.
  130. __________________________________________________
  131. [quote,'mailto:sedo_91@hotmail.com[Ahmed Mohammed]']
  132. __________________________________________________
  133. I would like to thank you for your book _A Byte of Python_ which i myself find the best way to
  134. learn python. I am a 15 year old i live in egypt my name is Ahmed. Python was my second programming
  135. language i learn visual basic 6 at school but didn't enjoy it, however i really enjoyed learning
  136. python. I made the addressbook program and i was sucessful. i will try to start make more programs
  137. and read python programs (if you could tell me source that would be helpful). I will also start on
  138. learning java and if you can tell me where to find a tutorial as good as yours for java that would
  139. help me a lot. Thanx.
  140. __________________________________________________
  141. [quote,'http://www.linux.com/feature/126522[Drew Ames]']
  142. __________________________________________________
  143. A wonderful resource for beginners wanting to learn more about Python is the 110-page PDF tutorial
  144. A Byte of Python by Swaroop C H. It is well-written, easy to follow, and may be the best
  145. introduction to Python programming available.
  146. __________________________________________________
  147. [quote,'http://paxmodept.com/telesto/blogitem.htm?id=627[Jason Delport]']
  148. __________________________________________________
  149. Yesterday I got through most of Byte of Python on my Nokia N800 and it's the easiest and most
  150. concise introduction to Python I have yet encountered. Highly recommended as a starting point for
  151. learning Python.
  152. __________________________________________________
  153. [quote,'http://twitter.com/suren/status/12840485454[Surendran]']
  154. __________________________________________________
  155. Byte of Vim and Python by @swaroopch is by far the best works in technical writing to me. Excellent
  156. reads #FeelGoodFactor
  157. __________________________________________________
  158. [quote,'http://www.facebook.com/pythonlang/posts/406873916788[Justin LoveTrue]']
  159. __________________________________________________
  160. "Byte of python" best one by far man
  161. (in response to the question "Can anyone suggest a good, inexpensive resource for learning the
  162. basics of Python? ")
  163. __________________________________________________
  164. [quote,'https://twitter.com/a_chinmay/status/258822633741762560[Chinmay]']
  165. __________________________________________________
  166. The Book Byte of python was very helpful ..Thanks bigtime :)
  167. __________________________________________________
  168. [quote,'http://stackoverflow.com/a/457785/4869[Patrick Harrington]']
  169. __________________________________________________
  170. Always been a fan of A Byte of Python - made for both new and experienced programmers.
  171. __________________________________________________
  172. [quote,'https://twitter.com/Pagal_e_azam/statuses/242865885256232960[Gadadhari Bheem]']
  173. __________________________________________________
  174. I started learning python few days ago from your book..thanks for such a nice book. it is so well
  175. written, you made my life easy..so you found a new fan of yours..thats me :) tons of thanks.
  176. __________________________________________________
  177. [quote,'mailto:fangbiyi@gmail.com[Fang Biyi (PhD Candidate ECE, Michigan State University)]']
  178. __________________________________________________
  179. Before I started to learn Python, I've acquired basic programming skills in Assembly, C, C++, C#
  180. and Java. The very reason I wanted to learn Python is it's popular (people are talking about it)
  181. and powerful (reality). This book written by Mr. Swaroop is a very good guide for both brand-new
  182. programmers and new python programmers. Took 10 half days to go through it. Great Help!
  183. __________________________________________________
  184. [quote,Bob]
  185. __________________________________________________
  186. Thank you ever so much for this book!!
  187. This book cleared up many questions I had about certain aspects of Python such as object oriented
  188. programming.
  189. I do not feel like an expert at OO but I know this book helped me on a first step or two.
  190. I have now written several python programs that actually do real things for me as a system
  191. administrator. They are all procedural oriented but they are small by most peoples standards.
  192. Again, thanks for this book. Thank you for having it on the web.
  193. __________________________________________________
  194. [quote,"The Walrus"]
  195. __________________________________________________
  196. I just want to thank you for writing the first book on programming I've ever really read. Python is
  197. now my first language, and I can just imagine all the possibilities. So thank you for giving me the
  198. tools to create things I never would have imagined I could do before.
  199. __________________________________________________
  200. [quote,Chris]
  201. __________________________________________________
  202. I wanted to thank you for writing _A Byte Of Python_ (2 & 3 Versions). It has been invaluable to
  203. my learning experience in Python & Programming in general.
  204. Needless to say, I am a beginner in the programming world, a couple of months of self study up to
  205. this point. I had been using youtube tutorials & some other online tutorials including other free
  206. books. I decided to dig into your book yesterday, & I've learned more on the first few pages than
  207. any other book or tutorial. A few things I had been confused about, were cleared right up with a
  208. GREAT example & explanation. Can't wait to read (and learn) more!!
  209. Thank you so much for not only writing the book, but for putting it under the creative commons
  210. license (free). Thank goodness there are unselfish people like you out there to help & teach the
  211. rest of us.
  212. __________________________________________________
  213. [quote,Nick]
  214. __________________________________________________
  215. I wrote you back in 2011 and I was just getting into Python and wanted to thank you for your
  216. tutorial "A Byte of Python". Without it, I would have fallen by the wayside. Since then I have
  217. gone on to program a number of functions in my organization with this language with yet more on the
  218. horizon. I would not call myself an advanced programmer by any stretch but I notice the occasional
  219. request for assistance now from others since I started using it. I discovered, while reading
  220. "Byte" why I had ceased studying C and C\++ and it was because the book given to me started out with
  221. an example containing an augmented assignment. Of course, there was no explanation for this
  222. arrangement of operators and I fell on my head trying to make sense of what was on the written
  223. page. As I recall it was a most frustrating exercise which I eventually abandoned. Doesn't mean C
  224. or C++ is impossible to learn, or even that I am stupid, but it does mean that the documentation I
  225. worked my way through did not define the symbols and words which is an essential part of any
  226. instruction. Just as computers will not be able to understand a computer word or computer symbol
  227. that is outside the syntax for the language being used, a student new to any field will not grasp
  228. his subject if he encounters words or symbols for which there are no definitions. You get a "blue
  229. screen" as it were in either case. The solution is simple, though: find the word or symbol and get
  230. the proper definition or symbol and lo and behold,the computer or student can proceed. Your book
  231. was so well put together that I found very little in it I couldn't grasp. So, thank you. I
  232. encourage you to continue to include full definitions of terms. The documentation with Python is
  233. good, once you know, (the examples are its strength from what I see) but in many cases it seems
  234. that you have to know in order to understand the documentation which to my mind is not what
  235. should be. Third party tutorials express the need for clarification of the documentation and their
  236. success largely depends on the words that are used to describe the terminology. I have recommended
  237. your book to many others. Some in Australia, some in the Caribbean and yet others in the US. It
  238. fills a niche no others do. I hope you are doing well and wish you all the success in the future.
  239. __________________________________________________
  240. [quote,Ankush]
  241. __________________________________________________
  242. hey, this is ankush(19). I was facing a great difficulty to start with python. I tried a lot of
  243. books but all were bulkier and not target oriented; and then i found this lovely one, which made me
  244. love python in no time. Thanks a lot for this "beautiful piece of book".
  245. __________________________________________________
  246. [quote,Luca]
  247. __________________________________________________
  248. I would like to thank you for your excellent guide on Python. I am a molecular biologist (with
  249. little programming background) and for my work I need to handle big datasets of DNA sequences and
  250. to analyse microscope images. For both things, programming in python has been useful, if not
  251. essential to complete and publish a 6-years project.
  252. That such a guide is freely available is a clear sign that the forces of evil are not yet ruling
  253. the world! :)
  254. __________________________________________________
  255. [quote,'http://www.overclock.net/t/1177951/want-to-learn-programming-where-do-i-start#post_15837176["{Unregistered}"]']
  256. __________________________________________________
  257. Since this is going to be the first language you learn, you should use A Byte of Python. It really
  258. gives a proper introduction into programming in Python and it is paced well enough for the average
  259. beginner. The most important thing from then on will be actually starting to practice making your
  260. own little programs.
  261. __________________________________________________
  262. [quote,Jocimar]
  263. __________________________________________________
  264. Just to say a loud and happy _thank you very much_ for publishing "A Byte of Python" and "A Byte of
  265. Vim". Those books were very useful to me four or five years ago when I starting learning
  266. programming. Right now I'm developing a project that was a dream for a long, long time and just
  267. want to say _thank you_. Keep walking. You are a source of motivation. All the best.
  268. __________________________________________________
  269. [quote,Dattatray]
  270. __________________________________________________
  271. Finished reading A byte of Python in 3 days. It is thoroughly interesting. Not a single page was
  272. boring. I want to understand the Orca screen reader code. Your book has hopefully equipped me
  273. for it.
  274. __________________________________________________
  275. [quote,'mailto:lisen2010@gmail.com[LEE]']
  276. __________________________________________________
  277. Hi, 'A byte of python' is really a good reading for python beginners. So, again, NICE WORK!
  278. i'm a 4 years experienced Java&C developer from China. Recently, i want to do some work on zim-wiki
  279. note project which uses pygtk to implement.
  280. i read your book in 6 days, and i can read and write python code examples now.
  281. thx for your contribution.
  282. plz keep your enthusiasm to make this world better, this is just a little encourage from China.
  283. Your reader
  284. Lee
  285. __________________________________________________
  286. [quote,'mailto:chao926@gmail.com[Isen I-Chun Chao]']
  287. __________________________________________________
  288. I am Isen from Taiwan, who is a graduating PhD student in Electrical Engineering Department of
  289. National Taiwan University. I would like to thank you for your great book. I think it is not only
  290. just easy to read but also comprehensive and complete for a new comer of Python. The reason I read
  291. your book is that I am starting to work on the GNU Radio framework. Your book let me catch most of
  292. important core ideas and skill of Python with a minimum time.
  293. I also saw that you do not mind that readers send you a thank note in your book. So I really like
  294. your book and appreciate it. Thanks.
  295. __________________________________________________
  296. The book is even used by NASA! It is being used in their
  297. http://dsnra.jpl.nasa.gov/software/Python/byte-of-python/output/byteofpython_html/[Jet Propulsion
  298. Laboratory] with their Deep Space Network project.
  299. === Academic Courses
  300. This book is/was being used as instructional material in various educational institutions:
  301. - 'Principles of Programming Languages' course at
  302. http://www.few.vu.nl/~nsilvis/PPL/2007/index.html['Vrije Universiteit, Amsterdam']
  303. - 'Basic Concepts of Computing' course at
  304. http://www.cs.ucdavis.edu/courses/exp_course_desc/10.html['University of California, Davis']
  305. - 'Programming With Python' course at
  306. http://www.people.fas.harvard.edu/~preshman/python_winter.html['Harvard University']
  307. - 'Introduction to Programming' course at http://www.comp.leeds.ac.uk/acom1900/['University of
  308. Leeds']
  309. - 'Introduction to Application Programming' course at
  310. http://www.cs.bu.edu/courses/cs108/materials.html['Boston University']
  311. - 'Information Technology Skills for Meteorology' course at
  312. http://gentry.metr.ou.edu/byteofpython/['University of Oklahoma']
  313. - 'Geoprocessing' course at http://www.msu.edu/~ashton/classes/825/index.html['Michigan State
  314. University']
  315. - 'Multi Agent Semantic Web Systems' course at the
  316. http://homepages.inf.ed.ac.uk/ewan/masws/['University of Edinburgh']
  317. - 'Introduction to Computer Science and Programming' at
  318. http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00sc-introduction-to-computer-science-and-programming-spring-2011/references/['MIT
  319. OpenCourseWare']
  320. - 'Basic programming at the Faculty of Social Sciences, University of Ljubljana, Slovenia' -
  321. mailto:ales.ziberna@fdv.uni-lj.si[Aleš Žiberna] says _"I (and my predecessor) have been using
  322. your book as the main literature for this course"_
  323. === License
  324. This book is licensed under a http://creativecommons.org/licenses/by-sa/4.0/[Creative Commons
  325. Attribution-ShareAlike 4.0 International License].
  326. This means:
  327. - You are free to Share i.e. to copy, distribute and transmit this book
  328. - You are free to Remix i.e. to make changes to this book (especially translations)
  329. - You are free to use it for commercial purposes
  330. Please note:
  331. - Please do *not* sell electronic or printed copies of the book unless you have clearly and
  332. prominently mentioned in the description that these copies are *not* from the original author of
  333. this book.
  334. - Attribution *must* be shown in the introductory description and front page of the document by
  335. linking back to {homepage} and clearly indicating that the original text can be fetched from this
  336. location.
  337. - All the code/scripts provided in this book is licensed under the
  338. http://www.opensource.org/licenses/bsd-license.php[3-clause BSD License] unless otherwise noted.
  339. === Read Now
  340. You can read the book online at {homepage}
  341. === Buy The Book
  342. A printed hardcopy of the book can be purchased at {buy} for your offline reading pleasure, and to
  343. support the continued development and improvement of this book.
  344. === Download
  345. - http://files.swaroopch.com/python/byte_of_python.pdf[PDF] (for desktop reading, etc.)
  346. - http://files.swaroopch.com/python/byte_of_python.epub[EPUB] (for iPhone/iPad, ebook readers, etc.)
  347. - http://files.swaroopch.com/python/byte_of_python.mobi[Mobi (for Kindle)]
  348. - https://github.com/swaroopch/byte_of_python[GitHub] (for raw text, translating, etc.)
  349. If you wish to support the continued development of this book, please consider
  350. {buy}[buying a hardcopy].
  351. === Read the book in your native language
  352. If you are interested in reading or contributing translations of this book to other human
  353. languages, please see <<translations,Translations>>.