Introduction to Programming Using Python plus MyProgrammingLab with Pearson eText -- Access Card
Format: PDF / Kindle (mobi) / ePub
Introduction to Programming Using Python is intended for use in the introduction to programming course.
Daniel Liang is known for his “fundamentals-first” approach to teaching programming concepts and techniques. “Fundamentals-first” means that students learn fundamental programming concepts like selection statements, loops, and functions, before moving into defining classes. Students learn basic logic and programming concepts before moving into object-oriented programming, and GUI programming.
Another aspect of Introduction to Programming Using Python is that in addition to the typical programming examples that feature games and some math, Liang gives an example or two early in the chapter that uses a simple graphic to engage the students. Rather than asking them to average 10 numbers together, they learn the concepts in the context of a fun example that generates something visually interesting.
Using the graphics examples is optional in this textbook. Turtle graphics can be used in Chapters 1-5 to introduce the fundamentals of programming and Tkinter can be used for developing comprehensive graphical user interfaces and for learning object-oriented programming.
0133050556/9780133050554 Introduction to Programming Using Python plus MyProgrammingLab with Pearson eText -- Access Card, 1/e
Package consists of:
0132747189/ 9780132747189 Introduction to Programming Using Python, 1/e
0133019861/ 9780133019865 MyProgrammingLab with Pearson eText -- Access Card -- for Introduction to Programming Using Python, 1/e
level of difficulty 28 Chapter 1 Introduction to Computers, Programs, and Python 1.9 (Area and perimeter of a rectangle) Write a program that displays the area and perimeter of a rectangle with the width of 4.5 and height of 7.9 using the following formula: area = width * height 1.10 (Average speed) Assume a runner runs 14 kilometers in 45 minutes and 30 seconds. Write a program that displays the average speed in miles per hour. (Note that 1 mile is 1.6 kilometers.) *1.11 (Population
sys.exit() test all cases Tip incremental development and testing ✓ Check Point For all programs, you should write a small amount of code and test it before moving on to add more code. This is called incremental development and testing. This approach makes debugging easier, because the errors are likely in the new code you just added. 4.18 Are the following two statements equivalent? if income <= 10000: tax = income * 0.1 elif income <= 20000: tax = 1000 + \ (income – 10000) * 0.15 if
Chapter 23 Weighted Graphs and Applications 23-1 APPENDIXES Appendix A Appendix B Appendix C INDEX CREDITS Python Keywords The ASCII Character Set Number Systems 533 534 536 541 557 xviii Location of VideoNotes in the Text LOCATION OF VIDEONOTES IN THE TEXT Chapter 1 Start with Python, p. 14 Start with Turtle graphics, p. 21 Chapter 2 Assignment statement, p. 37 Perform computation, p. 40 Chapter 3 String operations, p. 75 Draw shapes, p. 81 Chapter 4 Boolean expressions, p. 92
languages have a goto statement. The goto statement indiscriminately transfers control to any statement in the program and executes it. This makes your program vulnerable to errors. The break and continue statements in Python are different from goto statements. They operate only in a loop statement. The break statement breaks out of the loop, and the continue statement breaks out of the current iteration in the loop. 5.13 What is the keyword break for? What is the keyword continue for? Will the
in other situations. For this reason, seasoned programmers try to master as many different programming languages as they can, giving them access to a vast arsenal of software-development tools. If you learn to program using one language, you should find it easy to pick up other languages. The key is to learn how to solve problems using a programming approach. That is the main theme of this book. You are about to begin an exciting journey: learning how to program. At the outset, it is helpful to