
- 280 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Learn Python in 7 Days
About this book
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
Tools to learn more effectively

Saving Books

Keyword Search

Annotating Text

Listen to it instead
Information
Type Variables and Operators
Variables
- Reserved key words such as if, else, and so on cannot be used for naming variables
- Variable names can begin with _, $, or a letter
- Variable names can be in lower case and uppercase
- Variable names cannot start with a number
- White space characters are not allowed in the naming of a variable
<variable name>= < expression >
Single assignment
city='London' # A string variable assignment.
money = 100.75 # A floating point number assignment
count=4 #An integer assignment
Table of contents
- Title Page
- Copyright
- Credits
- About the Authors
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
- Getting Started with Python
- Type Variables and Operators
- Strings
- Lists
- Dictionary
- Control Statements and Loops
- Function and Scope of Variable
- Modules and Packages
- File Handling and Exceptions
- Collections
- Class and Objects
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app