Learning Python
Learn to code like a professional with Python – an open
source, versatile, and powerful programming language
Fabrizio Romano
BIRMINGHAM - MUMBAI
Learning Python
Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy
of the information presented. However, the information contained in this book is
sold without warranty, either express or implied. Neither the author, nor Packt
Publishing, and its dealers and distributors will be held liable for any damages
caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: December 2015
Production reference: 1171215
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78355-171-2
www.packtpub.com
Credits
Author
Fabrizio Romano
Reviewers
Simone Burol
Julio Vicente Trigo Guijarro
Veit Heller
Commissioning Editor
Akram Hussain
Acquisition Editor
Indrajit Das
Content Development Editors
Samantha Gonsalves
Adrian Raposo
Technical Editor
Siddhi Rane
Copy Editors
Janbal Dharmaraj
Kevin McGowan
Project Coordinator
Kinjal Bari
Proofreader
Sas Editing
Indexer
Priya Sane
Graphics
Kirk D'Penha
Abhinash Sahu
Production Coordinator
Melwyn D'sa
Cover Work
Melwyn D'sa
About the Author
Fabrizio Romano was born in Italy in 1975. He holds a master's degree in
computer science engineering from the University of Padova. He is also a certied
Scrum master.
Before Python, he has worked with several other languages, such as C/C++, Java,
PHP, and C#.
In 2011, he moved to London and started working as a Python developer for Glasses
Direct, one of Europe's leading online prescription glasses retailers.
He then worked as a senior Python developer for TBG (now Sprinklr), one of the
world's leading companies in social media advertising. At TBG, he and his team
collaborated with Facebook and Twitter. They were the rst in the world to get
access to the Twitter advertising API. He wrote the code that published the rst
geo-narrowcasted promoted tweet in the world using the API.
He currently works as a senior platform developer at Student.com, a company that
is revolutionizing the way international students nd their perfect home all around
the world.
He has delivered talks on Teaching Python and TDD with Python at the last two
editions of EuroPython and at Skillsmatter in London.