Programming and problem solving with Python
Book information
Description
This book aims at providing students thorough knowhow of Python programming language. It will familiarize them with the concepts of Python programming, its application in programming as well as advantages and disadvantages over other programming languages. The book covers all the fundamental and theoretical concepts of Python comprehensively. Apart from touching upon the concepts of Python programming, equal weightage in given on the implementation of these concepts in writing efficient python codes and solve problems using the same. About the Authors Preface Use of Python in Engineering Domains Organization of the Book Online Learning Centre Publisher’s Note Visual Wakthrough Acknowledgements Contents 1. Introduction to Computer and Python Programming Learning Outcomes Chapter Outline 1.1 Introduction 1.2 What is a Computer? 1.2.1 Input/Output (I/O) Unit 1.2.2 Central Processing Unit (CPU) 1.2.3 Memory Unit 1.3 Overview of Programming Languages 1.3.1 Machine Language 1.3.2 Assembly Language 1.3.3 High-level Language 1.4 History of Python 1.4.1 Why Python? 1.4.2 Installing Python in Windows 1.4.3 Starting Python in Different Execution Modes 1.5 Installing Python in Ubuntu 1.6 Executing Python Programs 1.6.1 Writing the First Python Program in Script Mode 1.7 Commenting in Python 1.8 Internal Working of Python 1.9 Python Implementations 1.9.1 Jython 1.9.2 IronPython 1.9.3 Stackless Python 1.9.4 PyPy Summary Key Terms Review Questions Programming Assignments 2. Basics of Python Programming Chapter Outline Learning Outcomes 2.1 Introduction 2.2 Python Character Set 2.3 Token 2.3.1 Literal 2.3.2 Value and Type on Literals 2.3.3 Keywords 2.3.4 Operator 2.3.5 Delimiter 2.3.6 Identifier/variable 2.4 Python Core Data Type 2.4.1 Integer 2.4.2 Floating Point Number 2.4.3 Complex Number 2.4.4 Boolean Type 2.4.5 String Type 2.5 The print() Function 2.5.1 The Print() function with end Argument 2.6 Assigning Value to a Variable 2.6.1 More on Assigning Values to Variables 2.6.2 Scope of a Variable 2.7 Multiple Assignments 2.8 Writing Simple Programs in Python 2.9 The input() Function 2.9.1 Reading String from the Console 2.10 The eval() Function 2.10.1 Apply eval() to input() Function 2.11 Formatting Number and Strings 2.11.1 Formatting Floating Point Numbers 2.11.2 Justifying Format 2.11.3 Integer Formatting 2.11.4 Formatting String 2.11.5 Formatting as a Percentage 2.11.6 Formatting Scientific Notation 2.12 Python Inbuilt Functions 2.12.1 the ord and chr Functions Summary Key Terms Review Questions Programming Assignments 3. Operators and Expressions Chapter Outline Learning Outcomes 3.1 Introduction 3.2 Operators and Expressions 3.3 Arithmetic Operators 3.3.1 Unary Operators 3.3.2 Binary Operators 3.4 Operator Precedence and Associativity 3.4.1 Example of Operator Precedence 3.4.2 Associativity 3.5 Changing Precedence and Associativity of Arithmetic Operators 3.6 Translating Mathematical Formulae into Equivalent Python Expressions 3.7 Bitwise Operator 3.7.1 The Bitwise AND (&) Operator 3.7.2 The Bitwise OR (|) Operator 3.7.3 The Bitwise XOR (^) Operator 3.7.4 The Right Shift (>>) Operator 3.7.5 The Left Shift (
Similar books
Python Programming
2018 · PDF
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF
The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians
1809 · PDF