معرفی کتاب «Learn Python in 7 days : get up-and-running with Python» نوشتهٔ Bhaskar N. Das, Mohit، منتشرشده توسط نشر Packt Publishing - ebooks Account; Packt Publishing در سال 2017. این کتاب در 5 صفحه، فرمت epub، زبان انگلیسی ارائه شده است. «Learn Python in 7 days : get up-and-running with Python» در دستهٔ بدون دستهبندی قرار دارد.
Key Features* Make the best of Python features * Learn the tinge of Python in 7 days * Learn complex concepts using the most simple examples Book DescriptionPython is a great language to get started in the world of programming and application development. This book will help you to take your skills to the next level having a good knowledge of the fundamentals of Python. We begin with the absolute foundation, covering the basic syntax, type variables and operators. We'll then move on to concepts like statements, arrays, operators, string processing and I/O handling. You'll be able to learn how to operate tuples and understand the functions and methods of lists. We'll help you develop a deep understanding of list and tuples and learn python dictionary. As you progress through the book, you'll learn about function parameters and how to use control statements with the loop. You'll further learn how to create modules and packages, storing of data as well as handling errors. We later dive into advanced level concepts such as Python collections and how to use class, methods, objects in python. By the end of this book, you will be able to take your skills to the next level having a good knowledge of the fundamentals of Python. What you will learn* Use if else statement with loops and how to break, skip the loop * Get acquainted with python types and its operators * Create modules and packages * Learn slicing, indexing and string methods * Explore advanced concepts like collections, class and objects * Learn dictionary operation and methods * Discover the scope and function of variables with arguments and return value About the Author**Mohit** is a Python programmer with a keen interest in the field of information security. He has completed his bachelor's degree in technology in computer science from Kurukshetra University, Kurukshetra, and master's in engineering (2012) in computer science from Thapar University, Patiala. He is a C|EH, ECSA from EC-Council USA and a former IBMer. He currently works in Sapient. He has published several articles in national and international magazines. He is the author of Python Penetration Testing Essentials and Python: Penetration Testing for Developers, also by Packt. **Bhaskar N. Das** is an application developer with a keen interest in the field of analytics and financial markets. He completed his Bachelor of Technology in Mechanical Engineering from Dehradun Institute of Technology, India and his master's degree in science (2014) in CSR and ethical management from FH BFI, Vienna, Austria. He has eight years of experience with IBM and has worked on several web and analytics-related technologies. He has published technical articles in leading magazines. Table of Contents1. Getting Started with Python 2. Type Variables and Operators 3. Strings 4. Lists 5. Dictionary 6. Control Statements and Loops 7. Function and Scope of Variable 8. Modules and Packages 9. File Handling and Exceptions 10. Collections 11. Class and Objects Key FeaturesMake the best of Python featuresLearn the tinge of Python in 7 daysLearn complex concepts using the most simple examplesBook DescriptionPython is a great language to get started in the world of programming and application development. This book will help you to take your skills to the next level having a good knowledge of the fundamentals of Python. We begin with the absolute foundation, covering the basic syntax, type variables and operators. We'll then move on to concepts like statements, arrays, operators, string processing and I/O handling. You'll be able to learn how to operate tuples and understand the functions and methods of lists. We'll help you develop a deep understanding of list and tuples and learn python dictionary. As you progress through the book, you'll learn about function parameters and how to use control statements with the loop. You'll further learn how to create modules and packages, storing of data as well as handling errors. We later dive into advanced level concepts such as Python collections and how to use class, methods, objects in python. By the end of this book, you will be able to take your skills to the next level having a good knowledge of the fundamentals of Python. What you will learnUse if else statement with loops and how to break, skip the loopGet acquainted with python types and its operatorsCreate modules and packagesLearn slicing, indexing and string methodsExplore advanced concepts like collections, class and objectsLearn dictionary operation and methodsDiscover the scope and function of variables with arguments and return valueAbout the Author Mohit (mohitraj.cs@gmail.com) is a Python programmer with a keen interest in the field of information security. He has completed his bachelor's degree in technology in computer science from Kurukshetra University, Kurukshetra, and master's in engineering (2012) in computer science from Thapar University, Patiala. He is a C|EH, ECSA from EC-Council USA and a former IBMer. He currently works in Sapient. He has published several articles in national and international magazines. He is the author of Python Penetration Testing Essentials and Penetration Testing for Developers, also by Packt. Bhaskar N. Das (bhaskarndas@gmail.com) is an application developer with a keen interest in the field of analytics and financial markets. He completed his Bachelor of Technology in Mechanical Engineering from Dehradun Institute of Technology, India and his master's degree in science (2014) in CSR and ethical management from FH BFI, Vienna, Austria. He has eight years of experience with IBM and has worked on several web and analytics-related technologies. He has published technical articles in leading magazines. Table of ContentsGetting Started with PythonType Variables and OperatorsStringsListsDictionaryControl Statements and Loops Function and Scope of VariableModules and PackagesFile Handling and ExceptionsCollectionsClass and Objects Learn efficient Python coding within 7 days About This Book Make the best of Python features Learn the tinge of Python in 7 days Learn complex concepts using the most simple examples Who This Book Is For The book is aimed at aspiring developers and absolute novice who want to get started with the world of programming. We assume no knowledge of Python for this book. What You Will Learn Use if else statement with loops and how to break, skip the loop Get acquainted with python types and its operators Create modules and packages Learn slicing, indexing and string methods Explore advanced concepts like collections, class and objects Learn dictionary operation and methods Discover the scope and function of variables with arguments and return value In Detail Python is a great language to get started in the world of programming and application development. This book will help you to take your skills to the next level having a good knowledge of the fundamentals of Python. We begin with the absolute foundation, covering the basic syntax, type variables and operators. We'll then move on to concepts like statements, arrays, operators, string processing and I/O handling. You'll be able to learn how to operate tuples and understand the functions and methods of lists. We'll help you develop a deep understanding of list and tuples and learn python dictionary. As you progress through the book, you'll learn about function parameters and how to use control statements with the loop. You'll further learn how to create modules and packages, storing of data as well as handling errors. We later dive into advanced level concepts such as Python collections and how to use class, methods, objects in python. By the end of this book, you will be able to take your skills to the next level having a good knowledge of the fundamentals of Python. Style and approach Fast paced guide to get you up-to-speed with the language. Every chapter is followed by an exercise that focuses on building something with the language. The codes of the exercises can be found on the Packt website Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file Content: Cover Copyright Credits About the Authors About the Reviewer www.PacktPub.com Customer Feedback Table of Contents Preface Chapter 1: Getting Started with Python Why Python? Python applications Versions€ Implementations of Python Installation Installation on Windows platform Installation on Linux platform Installation on Mac OS Notepad++ installation Python file formats Python interactive shell System or environment variables Setting environment variables in Windows Setting environment variables in Linux Setting environment variables in Mac OS (OS 10.9). Writing a simple Hello World! program€Basic Python syntax Comments in Python Triple, double and single quotes Python back slash String inside the quotes Escape sequence in Python String concatenation Formatted output Indentation Summary Chapter 2: Type Variables and Operators Variables Single assignment Multiple assignment Data types in Python Numeric data types or numbers Integers and long integers Floating point numbers Complex numbers Boolean data type String data types American Standard Code for Information Interchange (ASCII) character sets Conversion functions. Arithmetic expressionsMixed mode arithmetic Mixed Mode Conversion Type conversions Operators Arithmetic operators Comparison operators Variants of assignment operator Bitwise operators Logical operators Membership operators Identity operators Operator precedence Summary Chapter 3: Strings Python strings The subscript operator Slicing for substrings Python string methods String case methods String strip methods String split methods String justify methods€ String Boolean methods String functions€ Tuple Creating an empty tuple Creating tuple with elements. Indexing tupleSlicing of tuple Unpacking the items€of tuples€ Tuple functions Operations of tuples Exercise Summary€ Chapter 4: Lists Creating a list Creating a list with values Unpacking list values List operations Accessing list values Slicing the list Updating the list Deleting values from a list Addition of Python lists Multiplication of lists in operator List functions len() max () list () sorted () List methods append () extend () Difference between append and extend. count () index () insert() remove() pop() reverse() List comprehensions Exercises.
Learn efficient Python coding within 7 daysAbout This Book• Make the best of Python features• Learn the tinge of Python in 7 days• Learn complex concepts using the most simple examplesWho This Book Is ForThe book is aimed at aspiring developers and absolute novice who want to get started with the world of programming. We assume no knowledge of Python for this book.What You Will Learn• Use if else statement with loops and how to break, skip the loop• Get acquainted with python types and its operators• Create modules and packages• Learn slicing, indexing and string methods• Explore advanced concepts like collections, class and objects• Learn dictionary operation and methods• Discover the scope and function of variables with arguments and return valueIn DetailPython is a great language to get started in the world of programming and application development. This book will help you to take your skills to the next level having a good knowledge of the fundamentals of Python.We begin with the absolute foundation, covering the basic syntax, type variables and operators. We'll then move on to concepts like statements, arrays, operators, string processing and I/O handling. You'll be able to learn how to operate tuples and understand the functions and methods of lists. We'll help you develop a deep understanding of list and tuples and learn python dictionary. As you progress through the book, you'll learn about function parameters and how to use control statements with the loop. You'll further learn how to create modules and packages, storing of data as well as handling errors. We later dive into advanced level concepts such as Python collections and how to use class, methods, objects in python.By the end of this book, you will be able to take your skills to the next level having a good knowledge of the fundamentals of Python.Style and approachFast paced guide to get you up-to-speed with the language. Every chapter is followed by an exercise that focuses on building something with the language. The codes of the exercises can be found on the Packt website
Chapter 5: Dictionary; Overview of dictionary; Operations on the dictionary; Accessing the values of dictionary; Deleting an item from the dictionary; Updating the values of the dictionary; Adding an item to the dictionary; Dictionary functions; len(); str(); max(); min(); dict(); Dictionary methods; copy(); get(); setdefault(); has_key(); keys(); values(); update(); items(); clear(); Python dictionary with for loop; Practical program; Exercise; Summary; Chapter 6: Control Statements and Loops; Control statements; The if and if ... else statement; The if ... elif ... else statement; Loops. Read more... Abstract: Chapter 5: Dictionary; Overview of dictionary; Operations on the dictionary; Accessing the values of dictionary; Deleting an item from the dictionary; Updating the values of the dictionary; Adding an item to the dictionary; Dictionary functions; len(); str(); max(); min(); dict(); Dictionary methods; copy(); get(); setdefault(); has_key(); keys(); values(); update(); items(); clear(); Python dictionary with for loop; Practical program; Exercise; Summary; Chapter 6: Control Statements and Loops; Control statements; The if and if ... else statement; The if ... elif ... else statement; Loops