Python Programming: A Concise Introduction
Description
When you enroll for courses through Coursera you get to choose for a paid plan or for a free plan .
- Free plan: No certicification and/or audit only. You will have access to all course materials except graded items.
- Paid plan: Commit to earning a Certificate—it's a trusted, shareable way to showcase your new skills.
About this course: The goal of the course is to introduce students to Python Version 3.x programming using hands on instruction. It will show how to install Python and use the Spyder IDE (Integrated Development Environment) for writing and debugging programs. The approach will be to present an example followed by a small exercise where the learner tries something similar to solidify a concept. At the end of each module there will be an exercise where the student is required to write simple programs and submit them for grading. It is intended for students with little or no programming background, although students with such a background should be able to move forward at their preferred p…
Frequently asked questions
There are no frequently asked questions yet. If you have any more questions or need help, contact our customer service.
When you enroll for courses through Coursera you get to choose for a paid plan or for a free plan .
- Free plan: No certicification and/or audit only. You will have access to all course materials except graded items.
- Paid plan: Commit to earning a Certificate—it's a trusted, shareable way to showcase your new skills.
About this course: The goal of the course is to introduce students to Python Version 3.x programming using hands on instruction. It will show how to install Python and use the Spyder IDE (Integrated Development Environment) for writing and debugging programs. The approach will be to present an example followed by a small exercise where the learner tries something similar to solidify a concept. At the end of each module there will be an exercise where the student is required to write simple programs and submit them for grading. It is intended for students with little or no programming background, although students with such a background should be able to move forward at their preferred pace. The course is four modules long and is designed to be completed in four weeks.
Created by: Wesleyan University-
Taught by: Bill Boyd, Visiting Associate Professor and Visiting Scholar
Quantitative Analysis Center
Each course is like an interactive textbook, featuring pre-recorded videos, quizzes and projects.
Help from your peersConnect with thousands of other learners and debate ideas, discuss course material, and get help mastering concepts.
CertificatesEarn official recognition for your work, and share your success with friends, colleagues, and employers.
Wesleyan University At Wesleyan, distinguished scholar-teachers work closely with students, taking advantage of fluidity among disciplines to explore the world with a variety of tools. The university seeks to build a diverse, energetic community of students, faculty, and staff who think critically and creatively and who value independence of mind and generosity of spirit.Syllabus
WEEK 1
Beginning to Program in Python
In this module we introduce writing functions in Python using the convenient Spyder development environment. The lesson begins with instructions on installing the popular Anaconda distribution of Python, which includes Spyder. It continues by showing how to use the editor in Spyder to type in a function and then run it. Each lesson alternates between introducing a concept by example and having the student test his/her understanding by constructing a function similar to that example. The module lecture is contained in a single program source file named Exercises1.py. This file, which should be downloaded by the student at the beginning of the module, contains the complete lecture except the solutions to the ungraded exercises. The student should work each of these before viewing the instructor's solution. By using the unique capability of Spyder (using IPython Notebooks), the program file is segmented into cells each of which can be executed independently of the others. Thus the student does not have to manage multiple program files and finishes with a lecture file with filled-in student exercises that can be used for reference. Python topics included in this module are print statement, arithmetic operators, input statement, combining of strings, if statement, while loop, and for loop. The module ends with a series of small functions to write to be submitted for grading. Grading is done by custom software and should normally take only minutes with no limit to the number of re-submissions. Hopefully, you'll finish with a perfect score.
10 videos, 5 readings expand
- Video: Welcome and introduction
- Reading: Setting up Spyder
- Reading: Starting Python. Our first lecture and exercise file.
- Reading: Exercises1.py -- the exercise/lecture file for this module.
- Reading: Note about a minor problem with Spyder
- Video: Introduction to the Spyder IDE
- Video: Arithmetic operations
- Video: Our first functions
- Video: Creating strings and using them in print statements.
- Video: The "input" statement and combining strings
- Video: Using the "if" statement
- Video: Converting strings to numbers. Using the remainder operator
- Video: Introduction to loops - the "while" loop
- Video: The "for" loop; tracking down errors
- Reading: Practice functions for debugging Python code
Graded: Programming problems for module 1
WEEK 2
Working with Lists and Importing Libraries. The Random library.
Lists, datatypes, libraries, the random library.
8 videos, 1 reading expand
- Reading: Exercises 2 -- the exercise/lecture file for this module.
- Video: Introduction to lists
- Video: Lists continued
- Video: Stepping through lists using loops
- Video: Introduction to datatypes
- Video: Converting datatypes
- Video: Working with lists of sublists; writing a small report
- Video: Lists continued
- Video: Introduction to libraries. The random library.
Graded: Programming problems for module 2
WEEK 3
Tuples, Data Dictionaries, Text and CSV Files
So far, we have one collection data type, the list. In this module we take up two more: the tuple and the data dictionary. After that we introduce reading and writing text files and give some illustrative examples. Finally, we take up reading and writing Comma Separated Value (CSV) files.
4 videos, 3 readings expand
- Reading: Exercises3.py -- The exercise/lecture file for this module.
- Reading: Python files needed for this module.
- Reading: Text and CSV files used during this module.
- Video: Using tuples and data dictionaries
- Video: Reading and writing files
- Video: Writing scripts in Python
- Video: Reading and writing CSV files
Graded: Programming problems for module 3
WEEK 4
Functional Values, Sorting, Formatting, Statistics, and a Menu Driven Database Program
In this lesson, we take up a variety of topics and give an example using much of what we've covered in the course. First, we show how functions can return values. Then we show how to build lists of various types and how to sort these lists. After that we use the statistic library to introduce basic descriptive statistics. Finally, we show how to use formatting in print statements. As a recap, we work through an application making use of what we've learned to build a menu-driven program that maintains a small database.
10 videos, 2 readings expand
- Reading: Exercises4.py -- the exercise/lecture file for this module.
- Reading: Additional program and data files needed for this module.
- Video: Long strings, random library, building and sorting lists
- Video: Descriptive statistics
- Video: Formatting print statements
- Video: Starting the database application
- Video: Displaying the records
- Video: Adding and deleting records
- Video: Editing records
- Video: Saving records to a CSV file
- Video: Loading the records from the CSV file
- Video: Running our database application as a stand-alone program
Graded: Programming problems for module 4
Share your review
Do you have experience with this course? Submit your review and help other people make the right choice. As a thank you for your effort we will donate $1.- to Stichting Edukans.There are no frequently asked questions yet. If you have any more questions or need help, contact our customer service.