Let Us Python
192 pages
English

Vous pourrez modifier la taille du texte de cet ouvrage

Découvre YouScribe en t'inscrivant gratuitement

Je m'inscris

Découvre YouScribe en t'inscrivant gratuitement

Je m'inscris
Obtenez un accès à la bibliothèque pour le consulter en ligne
En savoir plus
192 pages
English

Vous pourrez modifier la taille du texte de cet ouvrage

Obtenez un accès à la bibliothèque pour le consulter en ligne
En savoir plus

Description

Learn Python Quickly, A Programmer-Friendly Guide Key features Strengthens the foundations, as detailed explanation of programming language concepts are given. Lists down all important points that you need to know related to various topics in an organized manner. Prepares you for coding related interview and theoretical questions. Provides In depth explanation of complex topics and Questions. Focuses on how to think logically to solve a problem. Follows systematic approach that will help you to prepare for an interview in short duration of time. Description Most Programmer's learning Python are usually comfortable with some or the other programming language and are not interested in going through the typical learning curve of learning the first programming language. Instead, they are looking for something that can get them off the ground quickly. They are looking for similarities and differences in a feature that they have used in other language(s). This book should help them immediately. It guides you from the fundamentals of using module through the use of advanced object orientation. What will you learn Data types, Control flow instructions, console & File Input/Output Strings, list & tuples, List comprehension Sets & Dictionaries, Functions & Lambdas Dictionary Comprehension Modules, classes and objects, Inheritance Operator overloading, Exception handling Iterators & Generators, Decorators, Command-line Parsing Who this book is forStudents, Programmers, researchers, and software developers who wish to learn the basics of Python programming language. Table of contents1. Introduction to Python2. Python Basics3. Strings4. Control Flow Instructions5. Console Input/Output6. Lists7. Tuples8. Sets9. Dictionaries10. Functions11. Modules12. Classes and Objects13. Intricacies of Classes and Objects14. Inheritance15. Exception Handling16. File Input/Output17. MiscellanyAbout the authorYashavant KanetkarThrough his books and Quest Video Courses on C, C++, Java, Python, Data Structures, .NET, IoT, etc. Yashavant Kanetkar has created, moulded and groomed lacs of IT careers in the last three decades. Yashavant's books and Quest videos have made a significant contribution in creating top-notch IT manpower in India and abroad. Yashavant's books are globally recognized and millions of students / professionals have benefitted from them. Yashavant's books have been translated into Hindi, Gujarati, Japanese, Korean and Chinese languages. Many of his books are published in India, USA, Japan, Singapore, Korea and China. Yashavant is a much sought after speaker in the IT field and has conducted seminars/workshops at TedEx, IITs, IIITs, NITs and global software companies. Yashavant has been honored with the prestigious "Distinguished Alumnus Award" by IIT Kanpur for his entrepreneurial, professional and academic excellence. This award was given to top 50 alumni of IIT Kanpur who have made significant contribution towards their profession and betterment of society in the last 50 years. In recognition of his immense contribution to IT education in India, he has been awarded the "Best .NET Technical Contributor" and "Most Valuable Professional" awards by Microsoft for 5 successive years. Yashavant holds a BE from VJTI Mumbai and M.Tech. from IIT Kanpur. Yadhavant's current affiliations include being a Director of KICIT Pvt Ltd. And KSET Pvt Ltd. His Linkedin profile: linkedin.com/in/yashavant-kanetkar-9775255 Aditya Kanetkar holds a Master's Degree in Computer Science from Georgia Tech, Atlanta. Prior to that, he completed his Bachelor's Degree in Computer Science and Engineering from IIT Guwahati. Aditya started his professional career as a Software Engineer at Oracle America Inc. at Redwood City, California. Currently he works with Microsoft Corp., USA. Aditya is a very keen programmer since his intern fays at Redfin, Amazon Inc. and Arista Networks. His current passion is anything remotely connected to Python, Machine Learning and C# related technologies. His Linkedin Profile: linkedin.com/in/aditya-kanetkar-a4292397

Sujets

Informations

Publié par
Date de parution 20 septembre 2019
Nombre de lectures 0
EAN13 9789389423372
Langue English

Informations légales : prix de location à la page 0,0600€. Cette information est donnée uniquement à titre indicatif conformément à la législation en vigueur.

Extrait

Let Us Python
First Edition
Yashavant Kanetkar Aditya Kanetkar
FIRST EDITION 2019
Copyright © BPB Publications, INDIA
ISBN : 978-93-8851-156-8
All Rights Reserved. No part of this publication can be stored in a retrieval system or reproduced in any form or by any means without the prior written permission of the publishers.
LIMITS OF LIABILITY AND DISCLAIMER OF WARRANTY
The Author and Publisher of this book have tried their best to ensure that the programmes, procedures and functions described in the book are correct. However, the author and the publishers make no warranty of any kind, expressed or implied, with regard to these programmes or the documentation contained in the book. The author and publisher shall not be liable i n any event of any damages, incidental or consequential, in connection with, or arising out of the furnishing, performance or use of these programmes, procedures a nd functions. Product name mentioned are used for identification purposes only and may be trademarks of their respective companies.
All trademarks referred to in the book are acknowledged as properties of their respective owners.
 
Distributors:
BPB PUBLICATIONS 20, Ansari Road, Darya Ganj New Delhi-110002 Ph: 23254990/23254991
MICRO MEDIA Shop No. 5, Mahendra Chambers, 150 DN Rd. Next to Capital Cinema, V.T. (C.S.T.) Station, MUMBAI-400 001 Ph: 22078296/22078297
BPB BOOK CENTRE 376 Old Lajpat Rai Market, Delhi-110006 Ph: 23861747
DECCAN AGENCIES 4-3-329, Bank Street, Hyderabad-500195 Ph: 24756967/24756400
 
 
Published by Manish Jain for BPB Publications, 20, Ansari Road, Darya Ganj, New Delhi-110002 and Printed by him at Repro India Pvt Ltd, Mumbai
 
 
 
Dedicated to Nalinee & Prabhakar Kanetkar...
About Yashavant Kanetkar

Through his books and Quest Video Courses on C, C++, Java, Python, Data Structures, .NET, loT, etc. Yashavant Kanetkar has created, molded and groomed lacs of IT careers in the last three decades. Yashavant's books and Quest videos have made a significant contribution in creating top-notch IT manpower in India and abroad.
Yashavant's books are globally recognized and millions of students / professionals have benefitted from them. Yashavant's books have been translated into Hindi, Gujarati, Japanese, Korean and Chinese languages. Many of his books are published in India, USA, Japan, Singapore, Korea and China.
Yashavant is a much sought after speaker in the IT field and has conducted seminars/workshops at TedEx, IITs, IIITs, NITs and global software companies.
Yashavant has been honored with the prestigious "Distinguished Alumnus Award" by IIT Kanpur for his entrepreneurial, professional and academic excellence. This award was given to top 50 alumni of IIT Kanpur who have made significant contribution towards their profession and betterment of society in the last 50 years.
In recognition of his immense contribution to IT education in India, he has been awarded the "Best .NET Technical Contributor" and "Most Valuable Professional" awards by Microsoft for 5 successive years.
Yashavant holds a BE from VJTI Mumbai and M.Tech. from IIT Kanpur. Yashavant's current affiliations include being a Director of KICIT Pvt. Ltd. and KSET Pvt. Ltd.
About Aditya Kanetkar

Aditya Kanetkar holds a Master's Degree in Computer Science from Georgia Tech, Atlanta. Prior to that, he completed his Bachelor's Degree in Computer Science and Engineering from IIT Guwahati. Aditya started his professional career as a Software Engineer at Oracle America Inc. at Redwood City, California. Currently he works with Microsoft Corp., USA.
Aditya is a very keen programmer since his intern days at Redfin, Amazon Inc an/ Arista Networks. Hi* current passion is -.92%.) remotely connected to Python, Machine Learning and C# related technologies.
Preface

Programming landscape has changes significantly over the last few years. Python is making inroads into every field that has anything to do with programming. Naturally, Python programming is a skill that one has to acquire, earlier the better.
Newbies who are learning Python as their first programming language will also find the book very simple to understand. Primary credit of this goes to the Python language—it is very simple for the beginner, yet very powerful for the expert who can tap into that power.
Many people learning Python have at least a nodding acquaintance with some programming language. So they are not interested in going through the typical curve of learning the first programming language. Instead, they are looking for something that will get them off the ground quickly. They are looking for similarities and differences in a feature that they have used in other language(s). This book should help them immensely. Instead of explaining a feature with verbose text, weI have mentioned the key points about it as "KanNotes" and explained those points with the help of programs.
If you ask us to name the most important characteristic of this book, we would say simplicity. Be it the code or the text, we have tried to make it as simple as we could. As far as the code is concerned, we wanted to present simple examples that can be easily edited, compiled and run.
You will also notice that very few programming examples in this book are code fragments. We have realized that a program that actually compiles and runs, helps improve one's understanding of a subject a great deal more, than just code fragments.
Simple exercises are exceptionally useful to complete the reader's understanding of a topic. So you will find one at the end of each chapter. Please do attempt them. They will really make you battle-ready.
We have poured my best efforts into these pages. We trust you will find the book useful. We have tried to write a Python book that makes reading it as much fun as the language is. All the best and happy programming!
Yashavant Kanetkar
Aditya Kanetkar
Brief Contents
1. Introduction to Python 2. Python Basics_ 3. Strings 4. Control Flow Instructions 5. Console Input/Output 6. Lists 7. Tuples 8 Sets 9 Dictionaries 10 Functions 11 Modules 12 Classes and Objects 13 Intricacies of Classes and Objects 14 Inheritance 15 Exception Handling 16 File Input/Output 17 Miscellany       Index
Contents

1. Introduction to Python
Exercise
2. Python Basics
What is Python
Working with Python
Identifiers and Keywords
Comments, Indentation and Multi-lining
Python Types
Operations and Conversions
Built-in Functions
Library Functions
Programs
Exercise
3. Strings
What are Strings?
Accessing String Elements
String Properties
String Operations
Programs
Exercise
4. Control Flow Instructions
Decision Control Instruction
Logical Operators
Conditional Expressions
Repetition Control Instruction
break and continue
pass Statement
Programs
Exercise
5. Console Input/Output
Console Input
Console Output
Formatted Printing
Programs
Exercise
6. Lists
What are Lists?
Accessing List Elements
Basic List Operations
List Methods
List Varieties
List Comprehension
Programs
Exercise
7. Tuples
What are Tuples?
Accessing Tuple Elements
Tuple Operations
Tuple Varieties
Tuple Comprehension
Conversion of List Comprehension to Tuple
Iterators and Iterables
zip() Function
Programs
Exercise
8 Sets
What are Sets?
Accessing Set Elements
Set Operations
Set Functions
Mathematical Set Operations
Updating Set Operations
Set Comprehension
Programs
Exercise
9 Dictionaries
What are Dictionaries?
Accessing Dictionary Elements
Dictionary Operations
Dictionary Functions
Nested Dictionary
Dictionary Comprehension
Programs
Exercise
10 Functions
What are Functions?
Communication with Functions
Types of Arguments
Unpacking Arguments
Lambda Functions
Recursive Functions
Programs
Exercise
11 Modules
The Main Module
Multiple Modules
Symbol Table
vars() and dir() Functions
Variations of import
Same Code, Different Interpretation
Search Sequence
Globals and Locals
global() and local()
Packages
Programs
Exercise
12 Classes and Objects
Programming Paradigms
What are Classes and Objects?
Public and Private Members
Class Declaration and Object Creation
Object Initialization
Class Variables and Methods
Accessing Object and Class Attributes
Programs
Exercise
13 Intricacies of Classes and Objects
Identifier Naming Convention
Calling Functions and Methods
Operator Overloading
Everything is an Object
Imitating a Structure
Data Conversion
Documentation Strings
Iterators
User-defined Iterators
Generators
When to use Iterable and Iterator/Generator
Generator Expressions
Programs
Exercise
14 Inheritance
Reuse Mechanisms
Which to use When?
Containership
Inheritance
What is Accessible where?
isinstance() and issubclass()
The object class
Features of Inheritance
Types of Inheritance
Diamond Problem
Abstract Classes
Runtime Polymorphism
Programs
Exercise
15 Exception Handling
What may go Wrong?
Syntax Errors
Exceptions
How to deal with Exceptions?
How to use try - except? 187
Nuances of try and except 187
User-defined Exceptions
else Block
finally Block
Exception Handling Tips
Program
Exercise
16 File Input/Output
I/O System
File I/O
Read / Write Operations
File Opening Modes
with Keyword
Moving within a File
Serialization and Deserialization
Serialization of User-defined Types
File and Directory Operations
Programs
Exercise
17 Miscellany
Command-line Arguments
Parsing of Command-line
Bitwise Operators
Assertion
Inner Functions
Decorators
Decorating Functions with Arguments
Unicode
bytes Datatype
Programs
Exercise
 
Index
1 Introduction to Python
• Python was created by Guido Van Rossum - Fondly known as Benevolent Dictator For Life.
• Python programmers are often called Pythonists or Pyth

  • Univers Univers
  • Ebooks Ebooks
  • Livres audio Livres audio
  • Presse Presse
  • Podcasts Podcasts
  • BD BD
  • Documents Documents