Python programming : a practical approach /: a practical approach. (2021)
- Record Type:
- Book
- Title:
- Python programming : a practical approach /: a practical approach. (2021)
- Main Title:
- Python programming : a practical approach
- Further Information:
- Note: Vijay Kumar Sharma, Vimal Kumar, Swati Sharma, Shashwat Pathak.
- Authors:
- Śarmā, Vijaya Kumāra
Kumar, Vimal
Sharma, Swati
Pathak, Shashwat - Contents:
- CHAPTER 1 Introduction to Python Programming 1.1 Introduction 1.2 Importance 1.3 Limitations 1.4 Impressions of Python 1.5 How to run Python 1.5.1 From Command Line 1.5.2 From Integrated Development Environment 1.6 Internal working of Python 1.7 Comments in Python 1.8 Conclusion Review Question Programming Questions CHAPTER 2 Basics of Python Programming 2.1 Introduction 2.2 Identifiers 2.2.1 Rules to declare Identifier 2.2.2 Characteristics of Identifier 2.3 Reserved Keywords 2.4 Literals 2.5 Fundamental Data Types 2.5.1 Integer Numbers 2.5.2 Floating Point Numbers 2.5.3 Complex Numbers 2.5.4 Boolean Type 2.5.5 String Type 2.6 Base Conversion 2.7 Type Casting 2.7.1 Integer: int() 2.7.2 Float Point: float() 2.7.3 Complex Number: complex() 2.7.4 Boolean: bool() 2.7.5 String: str() 2.7.6 Bytes Data Type: bytes() 2.7.7 Bytes array Data Type: bytearray() 2.7.8 List: list[] 2.7.9 Tuple: tuple() 2.7.10 Range Data Type: range() 2.7.11 Set Data Type: set{} 2.7.12 Frozenset Data Type: frozenset() 2.7.13 Dictionary Data Type: dict{} 2.7.14 None Data Type: None 2.8 Escape characters 2.9 input() Function 2.10 Evaluate: eval() Function 2.11 Command Line Arguments 2.12 Print: print() Function 2.13 Delete Statement 2.14 Conclusion 2.15 Review Question Programming Questions CHAPTER 3 Operators in Python 3.1 Introduction 3.2 Operators 3.2.1 Arithmetic Operators 3.2.2 Relational Operators 3.2.3 Logical Operators 3.2.4 Bitwise Operators 3.2.5 Assignment Operators 3.2.6 Ternary Operator 3.2.7CHAPTER 1 Introduction to Python Programming 1.1 Introduction 1.2 Importance 1.3 Limitations 1.4 Impressions of Python 1.5 How to run Python 1.5.1 From Command Line 1.5.2 From Integrated Development Environment 1.6 Internal working of Python 1.7 Comments in Python 1.8 Conclusion Review Question Programming Questions CHAPTER 2 Basics of Python Programming 2.1 Introduction 2.2 Identifiers 2.2.1 Rules to declare Identifier 2.2.2 Characteristics of Identifier 2.3 Reserved Keywords 2.4 Literals 2.5 Fundamental Data Types 2.5.1 Integer Numbers 2.5.2 Floating Point Numbers 2.5.3 Complex Numbers 2.5.4 Boolean Type 2.5.5 String Type 2.6 Base Conversion 2.7 Type Casting 2.7.1 Integer: int() 2.7.2 Float Point: float() 2.7.3 Complex Number: complex() 2.7.4 Boolean: bool() 2.7.5 String: str() 2.7.6 Bytes Data Type: bytes() 2.7.7 Bytes array Data Type: bytearray() 2.7.8 List: list[] 2.7.9 Tuple: tuple() 2.7.10 Range Data Type: range() 2.7.11 Set Data Type: set{} 2.7.12 Frozenset Data Type: frozenset() 2.7.13 Dictionary Data Type: dict{} 2.7.14 None Data Type: None 2.8 Escape characters 2.9 input() Function 2.10 Evaluate: eval() Function 2.11 Command Line Arguments 2.12 Print: print() Function 2.13 Delete Statement 2.14 Conclusion 2.15 Review Question Programming Questions CHAPTER 3 Operators in Python 3.1 Introduction 3.2 Operators 3.2.1 Arithmetic Operators 3.2.2 Relational Operators 3.2.3 Logical Operators 3.2.4 Bitwise Operators 3.2.5 Assignment Operators 3.2.6 Ternary Operator 3.2.7 Special Operators 3.2.7.1 Identity Operator 3.2.7.2 Membership Operator 3.3 Operator Precedence 3.4 Conclusion Review Question Programming Questions CHAPTER 4 Control Flow in Python 4.1 Introduction 4.2 Conditional Statements 4.2.1 if Statement 4.2.2 if-else Statement 4.2.3 if-elif-else Statement 4.3 Iterative Statements 4.3.1 for Loop 4.3.2 while Loop 4.3.3 Nested Loops 4.4 Transfer Statements 4.4.1 break Statement 4.4.2 continue Statement 4.4.3 pass Statement 4.5 Loop with else Block 4.6 Conclusion Review Question Programming Questions CHAPTER 5 String 5.1 Introduction 5.2 Multiline String Literals 5.3 Accessing Characters of String 5.3.1 By using Index 5.3.2 By using Slice Operator 5.3.2.1 Behavior of Slice Operator 5.3.2.2 Slice Operator Case Study 5.4 Mathematical Operators for String 5.5 len() Function 5.6 Checking Membership 5.7 String Operations 5.7.1 Comparison of Strings 5.7.2 Removing Spaces from String 5.7.3 Finding Substrings 5.7.4 index() 5.7.5 Methods to count substring in the main String 5.7.6 Replacing a String with another String 5.7.7 Splitting of Strings 5.7.8 Methods to join the Strings 5.7.9 Methods to change the case of a String 5.7.10 Methods to check the start and end part of String 5.7.11 Methods for checking the type of characters 5.8 Formatting of the Strings 5.8.1 Case 1-Formatting (default, positional & keyword arguments) 5.8.2 Case 2: Formatting of Numbers 5.8.3 Case 3: Formatting for Signed Numbers 5.8.4 Case 4: Number formatting with Alignment 5.8.5 Case 5: String formatting with format() 5.8.6 Case 6: Truncating Strings using format() method 5.8.7 Case 7: Formatting Dictionary Members using format() method 5.8.8 Case 8: Formatting Class Members using format() 5.8.9 Case 9: Dynamic Formatting using format() <P&g … (more)
- Edition:
- 1st
- Publisher Details:
- Boca Raton : Chapman & Hall/CRC
- Publication Date:
- 2021
- Extent:
- 1 online resource, illustrations (black and white)
- Subjects:
- 005.133
Python (Computer program language)
Computer programming - Languages:
- English
- ISBNs:
- 9781000434415
9781000434408
9781003185505 - Related ISBNs:
- 9781032028491
- Notes:
- Note: Includes bibliographical references and index.
Note: Description based on CIP data; resource not viewed. - Access Rights:
- Legal Deposit; Only available on premises controlled by the deposit library and to one user at any one time; The Legal Deposit Libraries (Non-Print Works) Regulations (UK).
- Access Usage:
- Restricted: Printing from this resource is governed by The Legal Deposit Libraries (Non-Print Works) Regulations (UK) and UK copyright law currently in force.
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library HMNTS - ELD.DS.628513
- Ingest File:
- 05_039.xml