Introduction to Python Programming
Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
Introduction to Python Programming
This course is part of Introduction to Programming with Python and Java Specialization
Instructor: Brandon Krakowsky
119,914 already enrolled
Included with
Ask Coursera
1,260 reviews
Recommended experience
1,260 reviews
Recommended experience
What you'll learn
Identify core aspects of programming and features of the Python language
Understand and apply core programming concepts like data structures, conditionals, loops, variables, and functions
Use different tools for writing and running Python code
Design and write fully-functional Python programs using commonly used data structures, custom functions, and reading and writing to files
Skills you'll gain
Tools you'll learn
Details to know
See how employees at top companies are mastering in-demand skills
Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate
There are 4 modules in this course
This course provides an introduction to programming and the Python language. Students are introduced to core programming concepts like data structures, conditionals, loops, variables, and functions. This course includes an overview of the various tools available for writing and running Python, and gets students coding quickly. It also provides hands-on coding exercises using commonly used data structures, writing custom functions, and reading and writing to files. This course may be more robust than some other introductory python courses, as it delves deeper into certain essential programming topics.
This first module covers an intro to programming and the Python language. We’ll start by downloading and installing the necessary tools to begin programming and writing code in Python. After learning how to print to the console, we’ll get an understanding of Python’s basic data types, and how to do simple math. We’ll follow up by creating our first Python script, and learn how to define and assign variables, while controlling the flow of our program using conditionals. We’ll also learn how to get input from the user, including some very basic error checking. Let’s get started!
What's included
42 videos11 readings3 assignments2 programming assignments
42 videos•Total 78 minutes
- About the Instructor : Brandon Krakowsky •1 minute
- What you should expect from this Course•1 minute
- Why begin with Python?•0 minutes
- Module Intro•1 minute
- What is Programming?•1 minute
- Client-side vs. server-side programming•1 minute
- Introduction to core programming concepts: Data structures, Conditionals, Variables, Functions, and Loops•1 minute
- What is Python?•0 minutes
- Python is interpreted•0 minutes
- Why Python?•1 minute
- Downloading & installing Python•1 minute
- Downloading & Installing Jupyter Notebook•1 minute
- Using Jupyter Notebook•3 minutes
- How do I write Python?•1 minute
- Printing•2 minutes
- Basic Data Types•2 minutes
- Arithmetic operators•1 minute
- About division•1 minute
- Boolean values•2 minutes
- Comparison operators•1 minute
- Code Along Exercise : Even/Odd•1 minute
- Strings•3 minutes
- Casting•3 minutes
- How to use Coursera Labs & understand Autograder output•9 minutes
- Downloading & installing IDLE•0 minutes
- Using the IDLE shell•1 minute
- Running a Python script•1 minute
- Adding comments to Python scripts•1 minute
- Code Along Exercise : Comment the program to greet user•1 minute
- Assigning a variable•1 minute
- Boolean operators•1 minute
- Variable substitution•3 minutes
- Combining variables•1 minute
- Code Along Exercise : Cats & dogs•1 minute
- Getting user input•4 minutes
- Code Along Exercise : Calculate total bill•6 minutes
- The if … elif … else statement•3 minutes
- Code Along Exercise : Numerical grade to letter grade•3 minutes
- Multiple if conditionals•1 minute
- Checking user input•1 minute
- Coding Demonstration : Common Python Errors•6 minutes
- Coding Demonstration : Creating a function to convert numerical grade to letter grade•4 minutes
11 readings•Total 101 minutes
- Course Layout & Syllabus•15 minutes
- Tips to succeed in this course•10 minutes
- Module 1 Resources (DOWNLOAD RELEVANT CODE AND/OR DATA FILES FOR THIS MODULE HERE)•30 minutes
- Python - Getting Help•2 minutes
- Quick Intro to Variables•5 minutes
- Homework 1a : Instructions•10 minutes
- What is a Python script?•3 minutes
- Python Errors•10 minutes
- Opt-in to Penn Engineering Online Communications•1 minute
- Reading : Quick Intro to Functions•5 minutes
- Homework 1b : Instructions•10 minutes
3 assignments•Total 60 minutes
- Practice Quiz - Variables & data types•30 minutes
- Quiz 1 - Intro to Python & The Python Language•10 minutes
- Quiz 2 - Variables & Conditionals•20 minutes
2 programming assignments•Total 270 minutes
- Homework 1a - Math Practice•120 minutes
- Homework 1b - Practice Writing Python & Calculating How Old Your Dog is in Human Years•150 minutes
We’ll start this module with a brief intro to lists, one of Python’s most commonly used data structures. We’ll learn just enough to get us started with loops, which are used to repeat a process or run a block of code multiple times. We’ll get into functions, which are blocks of organized code used to perform a single, related action. We’ll review some of Python’s built-in functions and learn how to design our own user-defined functions to use as building blocks in our own programs. Along the way, we’ll learn best practices for documenting our code for 2 different audiences: The users who are using our code and want to understand it at a high level, and the programmers who are reading it and want to know how it works.
What's included
31 videos2 readings3 assignments1 programming assignment
31 videos•Total 56 minutes
- Module Introduction•1 minute
- Creating a list•0 minutes
- Updating a list•2 minutes
- Types of Loops•0 minutes
- Executing code a given number of times•1 minute
- Iterating over a list•4 minutes
- Code Along Exercise : Find minimum value•2 minutes
- Iterating over strings•2 minutes
- Iterate over a string•1 minute
- Code Along Exercise : Iterate over a name•2 minutes
- 'for' loops using range•5 minutes
- Repeatedly executing code based on a condition•1 minute
- Waiting for user input•1 minute
- Code Along Exercise : Secret password•2 minutes
- Exiting a loop using break•1 minute
- Exiting a loop using continue•1 minute
- Nested loops•1 minute
- Code Along Exercise : Multiplication tables•1 minute
- Coding Demonstration : Average program•5 minutes
- Coding Demonstration : Word reversal•1 minute
- What is a function?•0 minutes
- Built-in functions•1 minute
- User-defined functions•1 minute
- Code Along Exercise : Square•1 minute
- Code Along Exercise : Greater than•2 minutes
- Docstrings (Documentation Strings)•1 minute
- Code Along Exercise : Get factors•2 minutes
- Code Along Exercise : Unique list•2 minutes
- Execution order•1 minute
- The main function•1 minute
- Coding Demonstration : Vowel/word counter •10 minutes
2 readings•Total 40 minutes
- Module 2 Resources (DOWNLOAD RELEVANT CODE AND/OR DATA FILES FOR THIS MODULE HERE)•30 minutes
- Homework 2 : Instructions•10 minutes
3 assignments•Total 58 minutes
- Practice Quiz : Intro to Lists, Loops, and Functions•30 minutes
- Quiz 3 - Intro to Lists & Loops•18 minutes
- Quiz 4 - Functions•10 minutes
1 programming assignment•Total 240 minutes
- Homework 2 - Number Properties•240 minutes
In this module, we’re going to start using PyCharm, another IDE for writing and running Python code. It has enhanced features that go way beyond the limited functionality of IDLE, and it’s also an industry standard. After revisiting lists, including more advanced usage of the commonly used sequence, we’ll take a deep dive into two other very important data structures : sets and tuples. We’ll learn how they can be leveraged to both store and manipulate information. And while we already have some experience working with strings, this module will explore the intricacies and more powerful functionality of strings.
What's included
16 videos3 readings3 assignments1 programming assignment
16 videos•Total 25 minutes
- Module introduction•1 minute
- About PyCharm•0 minutes
- Downloading & installing PyCharm•0 minutes
- Running code•2 minutes
- A review of lists•2 minutes
- More list operations•1 minute
- List functions•1 minute
- Slicing lists•6 minutes
- Strings vs. lists•1 minute
- Slicing strings•1 minute
- Code Along Exercise : Name Substring•2 minutes
- Split and join•1 minute
- Creating a tuple•1 minute
- Code Along Exercise : Max and min function•5 minutes
- Creating a set•1 minute
- Iterating over and updating a set•0 minutes
3 readings•Total 45 minutes
- Module 3 Resources (DOWNLOAD RELEVANT CODE AND/OR DATA FILES FOR THIS MODULE HERE)•30 minutes
- String functions•5 minutes
- Homework 3 : Instructions•10 minutes
3 assignments•Total 50 minutes
- Practice Quiz : Jupyter Notebook, IDLE, & PyCharm•30 minutes
- Quiz 5 - Lists & Strings•10 minutes
- Quiz 6 - Tuples & Sets•10 minutes
1 programming assignment•Total 240 minutes
- Homework 3 - Implement Functions Related to Strings, Lists, Sets, & Tuples•240 minutes
There are multiple ways of loading and storing data in Python. Information can be saved in dictionaries, a data structure that is extremely useful for storing multiple attributes (or data points) about a single thing. Data can also be stored in external files and then loaded into Python. This module will allow us to work with dictionaries in a variety of ways and to interact with the local file system by opening, reading from, and writing to, external files. With these added skills, you’ll begin to get a better sense of the dynamic power of Python and how it can be easily integrated with other systems.
What's included
17 videos3 readings3 assignments1 programming assignment
17 videos•Total 55 minutes
- Module Introduction •1 minute
- Creating a dictionary •1 minute
- Key:value pairs •1 minute
- Updating a dictionary •1 minute
- Code Along Exercise : Grade/attendance book •9 minutes
- Opening a file •1 minute
- Basics of file open method modes •1 minute
- Reading a file •1 minute
- Newline characters•1 minute
- Writing to a file•0 minutes
- Closing a file•1 minute
- Coding Demonstration : Open and read a file•4 minutes
- Coding Demonstration : Open, read, and append to new file•3 minutes
- Coding Demonstration : Open, read, and append to same file•3 minutes
- Coding Demonstration : Open, read, and write to new file•3 minutes
- Coding Demonstration : File to Dictionary•11 minutes
- Intro to Homework 4•14 minutes
3 readings•Total 41 minutes
- Module 4 Resources (DOWNLOAD RELEVANT CODE AND/OR DATA FILES FOR THIS MODULE HERE)•30 minutes
- Opt-in to Penn Engineering Online Communications•1 minute
- Homework 4 : Instructions•10 minutes
3 assignments•Total 56 minutes
- Practice Quiz : Python Dictionaries & Files•30 minutes
- Quiz 7 - Dictionaries•14 minutes
- Quiz 8 - File I/O•12 minutes
1 programming assignment•Total 240 minutes
- Homework 4 - Online Banking System•240 minutes
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructor
Offered by
Explore more from Software Development
Course
- Status: PreviewU
University of Leeds
Course
- Status: Free Trial
- Status: PreviewT
Total Seminars
Course
Why people choose Coursera for their career
Learner reviews
- 5 stars
71.11%
- 4 stars
19.60%
- 3 stars
5%
- 2 stars
2.06%
- 1 star
2.22%
Showing 3 of 1260
Reviewed on Aug 9, 2022
Although the homework gets difficult, it is progressive and is manageable is we spend enough time on it.highly recommending this class to people like me with no coding expereience!
Reviewed on Apr 14, 2024
I really enjoyed this course. It was well paced and covered the basics nicely. The practice exercises were hard, but made sure you learned all the key concepts.
Reviewed on May 16, 2023
It's just the beginning.For those who are also interested in programming, in my opinion, CS50 is also a good choice for learning the intro.HW3 and HW4 are pretty funny too.
Frequently asked questions
No, definitely not! This Specialization is intended for anyone who has an interest in problem solving and wants to learn introductory Python or Java. No prior computer science or programming experience is required.
The only math that learners will need for this Specialization is arithmetic and basic concepts in logic.
This course is the first in the Introduction to Programming with Python and Java Specialization. If you enjoyed it, we recommend Courses 2, 3 and 4 in the series!
If you would like to learn the fundamentals of computer science beyond the basics of programming, consider applying to the Master of Computer and Information and Technology (MCIT) at the University of Pennsylvania, an Ivy League computer science master’s program for people without a computer science background. For an on-campus experience, . If you prefer an online setting, apply to . In fact, the lectures in this series are also used in the online degree program! The Specialization certificate will be viewed favorably by the admissions committee, so be sure to mention it when you apply.
More questions
Financial aid available,
