At a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Chapter 1: Getting Started; Welcome; What Is Python?; Installing Python; IDLE and the Python Shell; Hello World; Creating, Saving, and Running a Python File; IDLE on Multiple Platforms; Summary; Chapter 2: Variables and Assignment Statements; A Sample Python Program; The Building Blocks of Programming; Four Types of Data; Integers; Floats; Strings; Booleans; Examples of Data; Form with Underlying Data; Variables; Assignment Statements; Variable Names; Naming Convention; Keywords; Case Sensitivity
متن يادداشت
A Small Sample Program: Absolute ValueProgramming Challenges; Negative, Positive, Zero; isSquare; isEven; isRectangle; Conditional Logic; The Logical not Operator; The Logical and Operator; The Logical or Operator; Precedence of Comparison and Logical Operators; Booleans in if Statements; Program to Calculate Shipping; Summary; Chapter 6: Loops; User's View of the Game; Loops; The while Statement; First Loop in a Real Program; Increment and Decrement; Running a Program Multiple Times; Python Built-in Packages; Generating a Random Number; Simulation of Flipping a Coin
متن يادداشت
More Complicated Assignment StatementsPrint Statements; Simple Math; Order of Operations; First Python Programs; Shorthand Naming Convention; Adding Comments; Full-Line Comment; Add a Comment After a Line of Code; Multiline Comment; Whitespace; Errors; Syntax Error; Exception Error; Logic Error; Summary; Chapter 3: Built-in Functions; Overview of Built-in Functions; Function Call; Arguments; Results; Built-in type Function; Getting Input from the User; Conversion Functions; int Function; float Function; str Function; First Real Programs; Concatenation; Another Programming Exercise
متن يادداشت
Specific and General Variable Names in Calls and FunctionsTemperature Conversion Functions; Placement of Functions in a Python File; Never Write Multiple Copies of the Same Code; Constants; Scope; Global Variables and Local Variables with the Same Names; Finding Errors in Functions: Traceback; Summary; Chapter 5: if, else, and elif Statements; Flowcharting; The if Statement; Comparison Operators; Examples of if Statements; Nested if Statement; The else Statement; Using if/else Inside a Function; The elif Statement; Using Many elif Statements; A Grading Program
متن يادداشت
Using Function Calls Inside Assignment StatementsSummary; Chapter 4: User-Defined Functions; A Recipe as an Analogy for Building Software; Ingredients; Directions; Definition of a Function; Building Our First Function; Calling a User-Defined Function; Receiving Data in a User-Defined Function: Parameters; Building User-Defined Functions with Parameters; Building a Simple Function that Does Addition; Building a Function to Calculate an Average; Returning a Value from a Function: The return Statement; Returning No Value: None; Returning More Than One Value
بدون عنوان
0
بدون عنوان
8
بدون عنوان
8
بدون عنوان
8
بدون عنوان
8
یادداشتهای مربوط به خلاصه یا چکیده
متن يادداشت
Get started in the world of software development: go from zero knowledge of programming to comfortably writing small to medium-sized programs in Python. Programming can be intimidating (especially when most books on software require you to know and use obscure command line instructions) but it doesnt have to be that way! In Learn to Program with Python, author Irv Kalb uses his in-person teaching experience to guide you through learning the Python computer programming language. He uses a conversational style to make you feel as though he is your personal tutor. All material is laid out in a thoughtful manner, each lesson building on previous ones. Many realworld analogies make the material easy to relate to. A wide variety of well-documented examples are provided. Along the way, youll develop small programs on your own through a series of coding challenges that reinforce the content of the chapters. What You Will Learn: Learn fundamental programming concepts including: variables and assignment statements, functions, conditionals, loops, lists, strings, file input and output, Internet data, and data structures Get comfortable with the free IDLE Interactive Development Environment (IDE), which you will use to write and debug all your Python code - no need to use the command line! Build text-based programs, including a number of simple games Learn how to re-use code by building your own modules Use Python's built-in data structures and packages to represent and make use of complex data from the Internet Who this book is for: This book assumes that you have absolutely no prior knowledge about programming. There is no need to learn or use any obscure Unix commands. Students of any age who have had no exposure to programming and are interested in learning to do software development in the Python language. The book can be used as a text book associated with a high school or college introduction to computer science course. Secondly, people who have had exposure to some computer language other than Python, who would like to build good habits for programming in Python
ویراست دیگر از اثر در قالب دیگر رسانه
عنوان
Learn to Program with Python
شماره استاندارد بين المللي کتاب و موسيقي
9781484218686
موضوع (اسم عام یاعبارت اسمی عام)
موضوع مستند نشده
Computer programming.
موضوع مستند نشده
Python (Computer program language)
رده بندی ديویی
شماره
004
شماره
005
.
13/3
ويراست
23
رده بندی کنگره
شماره رده
QA76
.
73
.
P98
نام شخص به منزله سر شناسه - (مسئولیت معنوی درجه اول )