Functions and Modules

The function as carrying out a set of operations and returning an object is basic to Python. Functions, lambda as the elegant anonymous one-line function, nested functions, and recursive functions are all discussed with illustrations. Local, non-local, an

  • PDF / 11,418,515 Bytes
  • 349 Pages / 453.543 x 683.15 pts Page_size
  • 54 Downloads / 215 Views

DOWNLOAD

REPORT


Programming with Python

Programming with Python

T.R. Padmanabhan

Programming with Python

123

T.R. Padmanabhan Amrita University Coimbatore, Tamil Nadu India

ISBN 978-981-10-3276-9 DOI 10.1007/978-981-10-3277-6

ISBN 978-981-10-3277-6

(eBook)

Library of Congress Control Number: 2016958500 © Springer Nature Singapore Pte Ltd. 2016 This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant protective laws and regulations and therefore free for general use. The publisher, the authors and the editors are safe to assume that the advice and information in this book are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or the editors give a warranty, express or implied, with respect to the material contained herein or for any errors or omissions that may have been made. Printed on acid-free paper This Springer imprint is published by Springer Nature The registered company is Springer Nature Singapore Pte Ltd. The registered company address is: 152 Beach Road, #22-06/08 Gateway East, Singapore 189721, Singapore

Dedicated To Maya and Roshan

MAYA

ROSHAN

MAYA

ROSHAN

Preface

People, not withstanding caste, creed, gender, ethnic diversities, nationalities, are interacting intensely in the recent decades identifying commonalities, accommodating differences, making common cause. Python stands out as a shining outcome of such distributed but focused co-ordination. It started with an idea—‘Simplicity at lofty heights (my view)’—that occurred to Guido van Rossum, who continues to be the accepted benevolent dictator for life (BDFL) for Python community. It is not that anyone can join this bandwagon and contribute; as it is not that easy. You can suggest a contribution but its pros and cons are discussed in an open forum through the net and (in the accepted shape) it enters the ‘Holy Book’ as PEP (Python Enhancement Proposal). The (open) Holy Book continues to grow in size shedding better light. It is a thrill to know how well it is evolving and to ‘feel’ or participate in its lustre. Python shines with the layers for its use—simple for the novice, versatile for the programmer, added facilities for the developer, openness for a ‘Python sculptor’. It has a varied and versatile data structure, a vast library, a huge collection of additional resources, and above all OPENNESS. So embrace Python —the language by the people, of the people, for the people. Definitely this