1. 책머리

1.1 서평

다음은 독자의 서평입니다:


 This is the best beginner’s tutorial I’ve ever seen! Thank you for your effort. 

제가 본 최고의 튜토리얼입니다! 노고에 감사드립니다.

— Walt Michalik



The best thing i found was "A Byte of Python", which is simply a brilliant book for a beginner. It’s well written, the concepts are well explained with self evident examples.

제가 찾은 최고의 책, "A Byte of Python"은 초보자를 위해 훌륭하게 쓰여진 책입니다. 이 책은 정말 잘 쓰여졌고, 적절한 예제를 통해 파이썬의 각 기능이 잘 설명되어 있습니다.

— Joshua Robin



Excellent gentle introduction to programming #Python for beginners

초보자를 위한 탁월하고 친절한 파이썬 프로그래밍 입문서

— Shan Rajasekaran



Best newbie guide to python

파이썬 초보자를 위한 최고의 가이드

— Nickson Kaigi



start to love python with every single page read

매 페이지를 읽을 때마다 파이썬을 사랑하게 됨

— Herbert Feutl



perfect beginners guide for python, will give u key to unlock magical world of python

(초보자를 위한 완벽한 파이썬 안내서, 당신을 마법의 파이썬 세계로 데려다줄 열쇠)

— Dilip



I should be doing my actual "work" but just found "A Byte of Python". A great guide with great examples.

사실 지금 "일"을 하고 있어야 하는데 딴짓하다가 "A byte of Python"을 찾았네요. 여러 좋은 예제를 담은 훌륭한 책입니다.

— Biologist John



Recently started reading a Byte of python. Awesome work. And that too for free. Highly recommended for aspiring pythonistas.

최근에 A byte of Python을 읽기 시작했습니다. 멋진 책입니다. 무료이고요. 좋은 파이썬 프로그래머를 지향하시는 분에게 강력 추천합니다.

— Mangesh



A Byte of Python, written by Swaroop. (this is the book I’m currently reading). Probably the best to start with, and probably the best in the world for every newbie or even a more experienced user.

Swaroop님이 쓴 A Byte of Python 입니다. (이 책이 바로 제가 지금 읽는 책입니다). 아마 처음 파이썬을 시작하기에, 파이썬을 처음 접하는 분들이나 심지어 경험 많은 프로그래머들에게도 최고의 책일 겁니다.

— Apostolos



Enjoying Reading #ByteOfPython by @swaroopch best book ever

— Yuvraj Sharma



Thank you so much for writing A Byte Of Python. I just started learning how to code two days ago and I’m already building some simple games. Your guide has been a dream and I just wanted to let you know how valuable it has been.

— Franklin



I’m from Dayanandasagar College of Engineering (7th sem, CSE). Firstly i want to say that your book "The byte of python" is too good a book for a beginner in python like me.The concepts are so well explained with simple examples that helped me to easily learn python. Thank you so much.

— Madhura



I am a 18 year old IT student studying at University in Ireland. I would like to express my gratitude to you for writing your book "A Byte of Python", I already had knowledge of 3 programming langagues - C, Java and Javascript, and Python was by far the easiest langague I have ever learned, and that was mainly because your book was fantastic and made learning python very simple and interesting. It is one of the best written and easy to follow programming books I have ever read. Congratulations and keep up the great work.

— Matt



Hi, I’m from Dominican Republic. My name is Pavel, recently I read your book A Byte of Python and I consider it excellent!! :). I learnt much from all the examples. Your book is of great help for newbies like me…​

— Pavel Simo



I am a student from China, Now ,I have read you book A byte of Python, Oh it’s beautiful. The book is very simple but can help all the first learnners. You know I am interesting in Java and cloud computing many times, i have to coding programm for the server, so i think python is a good choice, finish your book, i think its not only a good choice its must use the Python. My English is not very well, the email to you, i just wanna thank you! Best Wishes for you and your family.

— Roy Lau



I recently finished reading Byte of Python, and I thought I really ought to thank you. I was very sad to reach the final pages as I now have to go back to dull, tedious oreilly or etc. manuals for learning about python. Anyway, I really appreciate your book.

— Samuel Young



Dear Swaroop, I am taking a class from an instructor that has no interest in teaching. We are using Learning Python, second edition, by O’Reilly. It is not a text for beginner without any programming knowledge, and an instructor that should be working in another field. Thank you very much for your book, without it I would be clueless about Python and programming. Thanks a million, you are able to break the message down to a level that beginners can understand and not everyone can.

— Joseph Duarte



I love your book! It is the greatest Python tutorial ever, and a very useful reference. Brilliant, a true masterpiece! Keep up the good work!

— Chris-André Sommerseth



First of all, I want to say thanks to you for this greate book. I think it is a good book for those who are looking for a beginner’s tutorial for Python.

It is about two or there years ago, I think, when I first heard of this book. At that time, I am not able to read some book in English yet, so I got a chinese translation, which took me into the gate of Python programming.

Recently, I reread this book. This time, of course, the english version. I couldn’t believe that I can read the whole book without my dictionary at hand. Of course, it all dues to your effort to make this book an easy-to-understand one.

— myd7349



I’m just e-mailing you to thank you for writing Byte of Python online. I had been attempting Python for a few months prior to stumbling across your book, and although I made limited success with pyGame, I never completed a program.

Thanks to your simplification of the categories, Python actually seems a reachable goal. It seems like I have finally learned the foundations and I can continue into my real goal, game development.

…​

Once again, thanks VERY much for placing such a structured and helpful guide to basic programming on the web. It shoved me into and out of OOP with an understanding where two text books had failed.

— Matt Gallivan



I would like to thank you for your book A Byte of Python which i myself find the best way to learn python. I am a 15 year old i live in egypt my name is Ahmed. Python was my second programming language i learn visual basic 6 at school but didn’t enjoy it, however i really enjoyed learning python. I made the addressbook program and i was sucessful. i will try to start make more programs and read python programs (if you could tell me source that would be helpful). I will also start on learning java and if you can tell me where to find a tutorial as good as yours for java that would help me a lot. Thanx.

— Ahmed Mohammed



A wonderful resource for beginners wanting to learn more about Python is the 110-page PDF tutorial A Byte of Python by Swaroop C H. It is well-written, easy to follow, and may be the best introduction to Python programming available.

— Drew Ames



Yesterday I got through most of Byte of Python on my Nokia N800 and it’s the easiest and most concise introduction to Python I have yet encountered. Highly recommended as a starting point for learning Python.

— Jason Delport



Byte of Vim and Python by @swaroopch is by far the best works in technical writing to me. Excellent reads #FeelGoodFactor

— Surendran



"Byte of python" best one by far man

(in response to the question "Can anyone suggest a good, inexpensive resource for learning the basics of Python? ")

— Justin LoveTrue



The Book Byte of python was very helpful ..Thanks bigtime :)

— Chinmay



Always been a fan of A Byte of Python - made for both new and experienced programmers.

— Patrick Harrington



I started learning python few days ago from your book..thanks for such a nice book. it is so well written, you made my life easy..so you found a new fan of yours..thats me :) tons of thanks.

— Gadadhari Bheem



Before I started to learn Python, I’ve acquired basic programming skills in Assembly, C, C++, C# and Java. The very reason I wanted to learn Python is it’s popular (people are talking about it) and powerful (reality). This book written by Mr. Swaroop is a very good guide for both brand-new programmers and new python programmers. Took 10 half days to go through it. Great Help!

— Fang Biyi (PhD Candidate ECE, Michigan State University)




Thank you ever so much for this book!!

This book cleared up many questions I had about certain aspects of Python such as object oriented programming.

I do not feel like an expert at OO but I know this book helped me on a first step or two.

I have now written several python programs that actually do real things for me as a system administrator. They are all procedural oriented but they are small by most peoples standards.

Again, thanks for this book. Thank you for having it on the web.

— Bob



I just want to thank you for writing the first book on programming I’ve ever really read. Python is now my first language, and I can just imagine all the possibilities. So thank you for giving me the tools to create things I never would have imagined I could do before.

— The Walrus



I wanted to thank you for writing A Byte Of Python (2 & 3 Versions). It has been invaluable to my learning experience in Python & Programming in general.

Needless to say, I am a beginner in the programming world, a couple of months of self study up to this point. I had been using youtube tutorials & some other online tutorials including other free books. I decided to dig into your book yesterday, & I’ve learned more on the first few pages than any other book or tutorial. A few things I had been confused about, were cleared right up with a GREAT example & explanation. Can’t wait to read (and learn) more!!

Thank you so much for not only writing the book, but for putting it under the creative commons license (free). Thank goodness there are unselfish people like you out there to help & teach the rest of us.

— Chris



I wrote you back in 2011 and I was just getting into Python and wanted to thank you for your tutorial "A Byte of Python". Without it, I would have fallen by the wayside. Since then I have gone on to program a number of functions in my organization with this language with yet more on the horizon. I would not call myself an advanced programmer by any stretch but I notice the occasional request for assistance now from others since I started using it. I discovered, while reading "Byte" why I had ceased studying C and C[]+ and it was because the book given to me started out with an example containing an augmented assignment. Of course, there was no explanation for this arrangement of operators and I fell on my head trying to make sense of what was on the written page. As I recall it was a most frustrating exercise which I eventually abandoned. Doesn't mean C or C+ is impossible to learn, or even that I am stupid, but it does mean that the documentation I worked my way through did not define the symbols and words which is an essential part of any instruction. Just as computers will not be able to understand a computer word or computer symbol that is outside the syntax for the language being used, a student new to any field will not grasp his subject if he encounters words or symbols for which there are no definitions. You get a "blue screen" as it were in either case. The solution is simple, though: find the word or symbol and get the proper definition or symbol and lo and behold,the computer or student can proceed. Your book was so well put together that I found very little in it I couldn’t grasp. So, thank you. I encourage you to continue to include full definitions of terms. The documentation with Python is good, once you know, (the examples are its strength from what I see) but in many cases it seems that you have to know in order to understand the documentation which to my mind is not what should be. Third party tutorials express the need for clarification of the documentation and their success largely depends on the words that are used to describe the terminology. I have recommended your book to many others. Some in Australia, some in the Caribbean and yet others in the US. It fills a niche no others do. I hope you are doing well and wish you all the success in the future.

— Nick



hey, this is ankush(19). I was facing a great difficulty to start with python. I tried a lot of books but all were bulkier and not target oriented; and then i found this lovely one, which made me love python in no time. Thanks a lot for this "beautiful piece of book".

— Ankush



I would like to thank you for your excellent guide on Python. I am a molecular biologist (with little programming background) and for my work I need to handle big datasets of DNA sequences and to analyse microscope images. For both things, programming in python has been useful, if not essential to complete and publish a 6-years project.

That such a guide is freely available is a clear sign that the forces of evil are not yet ruling the world! :)

— Luca



Since this is going to be the first language you learn, you should use A Byte of Python. It really gives a proper introduction into programming in Python and it is paced well enough for the average beginner. The most important thing from then on will be actually starting to practice making your own little programs.

— "{Unregistered}"



Just to say a loud and happy thank you very much for publishing "A Byte of Python" and "A Byte of Vim". Those books were very useful to me four or five years ago when I starting learning programming. Right now I’m developing a project that was a dream for a long, long time and just want to say thank you. Keep walking. You are a source of motivation. All the best.

— Jocimar



Finished reading A byte of Python in 3 days. It is thoroughly interesting. Not a single page was boring. I want to understand the Orca screen reader code. Your book has hopefully equipped me for it.

— Dattatray



Hi, 'A byte of python' is really a good reading for python beginners. So, again, NICE WORK!

i’m a 4 years experienced Java&C developer from China. Recently, i want to do some work on zim-wiki note project which uses pygtk to implement.

i read your book in 6 days, and i can read and write python code examples now. thx for your contribution. plz keep your enthusiasm to make this world better, this is just a little encourage from China. Your reader Lee

— LEE



I am Isen from Taiwan, who is a graduating PhD student in Electrical Engineering Department of National Taiwan University. I would like to thank you for your great book. I think it is not only just easy to read but also comprehensive and complete for a new comer of Python. The reason I read your book is that I am starting to work on the GNU Radio framework. Your book let me catch most of important core ideas and skill of Python with a minimum time.

I also saw that you do not mind that readers send you a thank note in your book. So I really like your book and appreciate it. Thanks.

— Isen I -Chun Chao



이 책은 미국항공우주국National Aeronautics and Space Administration, NASA의 제트 추진 연구소Jet Propulsion Laboratory의 Deep Space Network 프로젝트에서 이용되고 있습니다.


1.2 수업 교재

이 책은 다음과 같은 교육 기관에서 교재로 이용되었거나, 이용되고 있습니다.

1.3 권리 및 권한

이 책은 Creative Commons Attribution-ShareAlike 4.0 International License 하에 배포됩니다. 이는 당신이 다음의 권리를 갖는 것을 뜻합니다:

  • 이 책의 복제, 배포, 전시, 공연 및 공중송신을 할 수 있습니다.

  • 이 책을 개작, 수정하거나 이차저작물을 작성할 수 있습니다 (특히 번역판을 제작할 수 있습니다).

  • 이 책을 영리 목적으로 이용할 수 있습니다.


다음의 내용을 숙지해주시기 바랍니다:

  • 이 책의 전자책/출력본을 판매하실 경우, 명백하고 눈에 잘 띄는 방법으로 이 책의 원 저자로부터 판매되는 것이 아님을 명시하지 않는 한 이 책을 판매하실 수 없습니다.

  • 이러한 권리에 관련된 내용은 반드시 책의 도입부에 적혀 있어야 하며, 이 문서의 첫 페이지에는 http://swaroopch.com/notes/python 로 연결되는 링크가 반드시 있어야 하고, 원 저자의 글을 이 곳에서 내려받을 수 있다는 사실을 명시해야 합니다.

  • 따로 명시되어 있지 않는 한, 이 책에서 사용된 모든 코드 및 스크립트는 3-clause BSD License 하에 배포됩니다.


1.4 책을 읽으세요!

http://swaroopch.com/notes/python (영문) 또는 http://byteofpython-korean.sourceforge.net/byte_of_python.html (한글)에서 이 책을 온라인으로 읽으실 수 있습니다.


1.5 책 구입하기

종이 책을 좋아하시는 분, 혹은 이 책의 발전과 개선을 위해 도움을 주시려는 분은 이 책의 종이책(하드카피 출력본)을 http://swaroopch.com/buybook에서 구입할 수 있습니다.


1.6 내려받기

이 책의 지속적인 발전을 바라신다면, http://swaroopch.com/buybook에서 책을 구입하는 것을 고려해 주세요.


1.7 번역본 읽기

이 책의 번역본을 읽고 싶으신 분들, 혹은 이 책을 번역하는데 도움을 주시려는 분은 '24. 번역' 챕터를 읽어 주세요.