Python Programming Fundamentals by Kent D. Lee

By Kent D. Lee

Computer programming is a ability that could carry nice amusement from the creativity occupied with designing and enforcing an answer to an issue. This classroom-tested and easy-to-follow textbook teaches the reader tips to software utilizing Python, an obtainable language which might be realized incrementally. via an intensive use of examples and sensible routines, scholars will learn how to realize and observe summary styles in programming, in addition to the best way to check out the nation of a application utilizing a debugger tool.

Features:

  • Contains various examples and solved perform workouts designed for an interactive school room surroundings
  • Highlights a number of styles which typically seem in courses, and provides workouts that strengthen popularity and alertness of those styles
  • Introduces using a debugger, and comprises helping fabric that finds how courses paintings
  • Presents the Tkinter framework for construction graphical person interface functions and event-driven courses
  • Provides necessary extra assets for teachers on the linked site: http://cs.luther.edu/~leekent/CS1

This hands-on textbook for energetic studying within the lecture room will allow undergraduates in machine technological know-how to enhance the required abilities to start constructing their very own courses. It employs Python because the introductory language as a result of the wealth of help on hand for programmers.

Dr. Kent D. Lee is affiliate Professor of machine technological know-how on the division of desktop technology at Luther collage, Decorah, Iowa, united states. he's the writer of the winning Springer textbook, Programming Languages: An energetic studying Approach.

Show description

Read Online or Download Python Programming Fundamentals PDF

Similar python books

Fundamentals of Python: From First Programs through Data Structures

In basics OF PYTHON: FROM FIRST courses via facts constructions, Washington and Lee college professor Kenneth A. Lambert provides the entire vital subject matters in CS1 and CS2 in a single quantity. This low-cost structure presents teachers with a constant method of educating introductory programming and knowledge buildings over a regular two-term path series.

Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython

Python for facts research is anxious with the nuts and bolts of manipulating, processing, cleansing, and crunching info in Python. it's also a realistic, glossy creation to clinical computing in Python, adapted for data-intensive functions. it is a booklet in regards to the elements of the Python language and libraries you'll have to successfully remedy a large set of information research difficulties.

Python and AWS

For those who intend to take advantage of Amazon net providers (AWS) for distant computing and garage, Python is a perfect programming language for constructing functions and controlling your cloud-based infrastructure. This cookbook will get you begun with greater than dozen recipes for utilizing Python with AWS, in accordance with the author’s boto library.

Artificial Intelligence with Python

Construct real-world man made Intelligence functions with Python to intelligently have interaction with the realm round you approximately This booklet Step into the fantastic international of clever apps utilizing this finished advisor input the realm of synthetic Intelligence, discover it, and create your personal purposes paintings via basic but insightful examples that may get you up and operating with man made Intelligence very quickly Who This booklet Is For This e-book is for Python builders who are looking to construct real-world synthetic Intelligence functions.

Additional resources for Python Programming Fundamentals

Sample text

Why are there types in Python programs? How can you tell what type of value is stored in 4 contiguous bytes of memory? How can you interactively work with the Python interpreter? What is prototyping as it applies to computer programming? Name two different types of errors that you can get when writing a computer program? What is unique about each type of error? What is a reference in a Python program? Why shouldn’t you compare floats for equality? What would you have to write to ask the user to enter an integer and then read it into a variable in your program?

Notice the first position in the string is assigned 0 as its index. The second character is assigned index 1, and so on. Strings and their operations are discussed in more detail in Chap. 3. 11 Write the three line program given in the two listings on page 24. Then, without writing the string literal “house”, modify it to print the string “house” to the screen using string indexing. HINT: You can add strings together to build a new string. So, name = "Sophus" + " Lie" will result in name referring to the string “Sophus Lie”.

To become a good programmer you must learn to look backwards through your code from the point where an error is detected to find the location where it occurred. In this case, the gallon variable should have been written as gallons on line 3 but was incorrectly typed. Another common error is the index out of range error. This can occur when trying to access a value in a sequence by indexing into the sequence. If the index is for an item that is outside the range of the sequence, an index out of range error will occur.

Download PDF sample

Rated 4.26 of 5 – based on 6 votes