Learn Python in 7 Days
Mohit, Bhaskar N. Das
- 280 pages
- English
- ePUB (adapté aux mobiles)
- Disponible sur iOS et Android
Learn Python in 7 Days
Mohit, Bhaskar N. Das
Ă propos de ce livre
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
Foire aux questions
Informations
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