Learn Python in 7 Days

Learn efficient Python coding within 7 days
Preview in Mapt

Learn Python in 7 Days

Mohit, Bhaskar N. Das

7 customer reviews
Learn efficient Python coding within 7 days
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $31.99
Save 68%
Print + eBook
$31.99
RRP $31.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$31.99
$29.99 p/m after trial
RRP $31.99
RRP $31.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Learn Python in 7 Days Book Cover
Learn Python in 7 Days
$ 31.99
$ 10.00
Learn Java in 7 days Book Cover
Learn Java in 7 days
$ 31.99
$ 10.00
Buy 2 for $20.00
Save $43.98
Add to Cart

Book Details

ISBN 139781787288386
Paperback280 pages

Book Description

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.

Table of Contents

Chapter 1: Getting Started with Python
Why Python?
Installation
Notepad++ installation
Writing a simple Hello World! program 
Basic Python syntax
Summary
Chapter 2: Type Variables and Operators
Variables
Operators
Summary
Chapter 3: Strings
Python strings
Slicing for substrings
Python string methods
String functions 
Tuple
Tuple functions
Operations of tuples
Exercise
Summary 
Chapter 4: Lists
Creating a list
List operations
in operator
List functions
List methods
List comprehensions
Exercises
Summary
Chapter 5: Dictionary
Overview of dictionary
Operations on the dictionary
Dictionary functions
Dictionary methods
Python dictionary with for loop
Exercise
Summary
Chapter 6: Control Statements and Loops
Control statements
The if and if...else statement
The if...elif...else statement
Loops
Summary
Chapter 7: Function and Scope of Variable
Functions
Pass by reference versus pass by value
Scope of variables
Memory management
Summary
Chapter 8: Modules and Packages
Modules 
The import statement
Locating Python modules
Compiled Python files
The Python package
Summary
Chapter 9: File Handling and Exceptions
Reading text from a file 
Writing text to a file
Pickling
Unpickling
Exceptions
Summary
Chapter 10: Collections
Collections
Summary
Chapter 11: Class and Objects
Object-oriented programming overview
Instance variables
The __init__ method
Class variables
Class inheritance
Overriding methods
Operator overloading
The class method
The static method
The private variable
Summary

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

Authors

Table of Contents

Chapter 1: Getting Started with Python
Why Python?
Installation
Notepad++ installation
Writing a simple Hello World! program 
Basic Python syntax
Summary
Chapter 2: Type Variables and Operators
Variables
Operators
Summary
Chapter 3: Strings
Python strings
Slicing for substrings
Python string methods
String functions 
Tuple
Tuple functions
Operations of tuples
Exercise
Summary 
Chapter 4: Lists
Creating a list
List operations
in operator
List functions
List methods
List comprehensions
Exercises
Summary
Chapter 5: Dictionary
Overview of dictionary
Operations on the dictionary
Dictionary functions
Dictionary methods
Python dictionary with for loop
Exercise
Summary
Chapter 6: Control Statements and Loops
Control statements
The if and if...else statement
The if...elif...else statement
Loops
Summary
Chapter 7: Function and Scope of Variable
Functions
Pass by reference versus pass by value
Scope of variables
Memory management
Summary
Chapter 8: Modules and Packages
Modules 
The import statement
Locating Python modules
Compiled Python files
The Python package
Summary
Chapter 9: File Handling and Exceptions
Reading text from a file 
Writing text to a file
Pickling
Unpickling
Exceptions
Summary
Chapter 10: Collections
Collections
Summary
Chapter 11: Class and Objects
Object-oriented programming overview
Instance variables
The __init__ method
Class variables
Class inheritance
Overriding methods
Operator overloading
The class method
The static method
The private variable
Summary

Book Details

ISBN 139781787288386
Paperback280 pages
Read More
From 7 reviews

Read More Reviews

Recommended for You

The Python Apprentice Book Cover
The Python Apprentice
$ 31.99
$ 10.00
Python: End-to-end Data Analysis Book Cover
Python: End-to-end Data Analysis
$ 71.99
$ 10.00
Python: Data Analytics and Visualization Book Cover
Python: Data Analytics and Visualization
$ 79.99
$ 10.00
Statistics for Machine Learning Book Cover
Statistics for Machine Learning
$ 39.99
$ 10.00
Mastering Machine Learning with scikit-learn - Second Edition Book Cover
Mastering Machine Learning with scikit-learn - Second Edition
$ 35.99
$ 10.00
Learn Java in 7 days Book Cover
Learn Java in 7 days
$ 31.99
$ 10.00