Python Basics
Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
Python Basics
This course is part of Python 3 Programming Specialization
Instructors: Paul Resnick
533,748 already enrolled
Included with
Learn more
Ask Coursera
18,432 reviews
18,432 reviews
What you'll learn
Learn Python 3 basics, including conditional statements, loops, and data structures like strings and lists.
Develop practical programming skills by creating drawings and building your debugging abilities.
Skills you'll gain
Tools you'll learn
Details to know
3 assignments
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 introduces the basics of Python 3, including conditional execution and iteration as control structures, and strings and lists as data structures. You'll program an on-screen Turtle to draw pretty pictures. You'll also learn to draw reference diagrams as a way to reason about program executions, which will help to build up your debugging skills. The course has no prerequisites. It will cover Chapters 1-9 of the textbook "Fundamentals of Python Programming," which is the accompanying text (optional and free) for this course.
The course is for you if you're a newcomer to Python programming, if you need a refresher on Python basics, or if you may have had some exposure to Python programming but want a more in-depth exposition and vocabulary for describing and reasoning about programs. This is the first of five courses in the Python 3 Programming Specialization.
In week one you will be introduced to programming in python through lectures and the Runestone textbook - an interactive online textbook built for this course. By the end of the module, you will have run your first python program, and learned how to draw images by writing a program.
What's included
30 videos2 readings1 assignment36 app items
30 videosβ’Total 174 minutes
- Introduction to the Specializationβ’11 minutes
- Whatβs New? Updates and Improvements in the Second Editionβ’2 minutes
- How to Use the Interactive Textbookβ’14 minutes
- Getting Startedβ’7 minutes
- Introduction - Programming in Pythonβ’1 minute
- Values and Data Typesβ’7 minutes
- Operators and Operandsβ’6 minutes
- Function Callsβ’10 minutes
- Data Typesβ’6 minutes
- Type Conversion Functionsβ’6 minutes
- Variablesβ’11 minutes
- Statements and Expressionsβ’8 minutes
- More About Statements and Expressionsβ’7 minutes
- Updating Variablesβ’7 minutes
- Hard-Codingβ’3 minutes
- Inputβ’6 minutes
- Conclusion - Programming in Pythonβ’1 minute
- Introduction - Objects and Turtle Graphicsβ’1 minute
- Our First Turtle Programβ’7 minutes
- Instances: A Herd of Turtlesβ’7 minutes
- Repetition with a For Loopβ’6 minutes
- More Turtle Methodsβ’2 minutes
- Importing Modulesβ’9 minutes
- Conclusion - Turtle Graphicsβ’1 minute
- Introduction - Debuggingβ’1 minute
- Syntax, Runtime, and Semantic Errorsβ’6 minutes
- Know Your Error Messagesβ’4 minutes
- Incremental Programmingβ’6 minutes
- Common Errorsβ’6 minutes
- Conclusion - Debuggingβ’2 minutes
2 readingsβ’Total 20 minutes
- Syllabusβ’10 minutes
- Help Us Learn More About You!β’10 minutes
1 assignmentβ’Total 4 minutes
- Optional - What Did You Use to Practice This Week?β’4 minutes
36 app itemsβ’Total 396 minutes
- Assessment - Programming in Pythonβ’15 minutes
- Assessment: Turtle Graphicsβ’15 minutes
- Gamut Goal Setterβ’4 minutes
- Values and Data Typesβ’10 minutes
- Use the Practice Toolβ’1 minute
- Operators and Operandsβ’10 minutes
- Order of Operationsβ’10 minutes
- Function Callsβ’10 minutes
- Data Typesβ’10 minutes
- Type Conversion Functionsβ’10 minutes
- Variablesβ’10 minutes
- Variable Names and Keywordsβ’10 minutes
- Choosing the Right Variable Nameβ’10 minutes
- Reassignmentβ’10 minutes
- Statements and Expressionsβ’10 minutes
- Updating Variablesβ’10 minutes
- Hard-Codingβ’10 minutes
- Inputβ’10 minutes
- Interactive Textbook Practice Opportunityβ’1 minute
- Hello Little Turtles!β’10 minutes
- Our First Turtle Programβ’10 minutes
- Instances: A Herd of Turtlesβ’10 minutes
- Object Oriented Conceptsβ’10 minutes
- Repetition with a For Loopβ’10 minutes
- A Few More Turtle Methods and Observationsβ’10 minutes
- Summary of Turtle Methodsβ’10 minutes
- Importing Modulesβ’10 minutes
- The Random Moduleβ’10 minutes
- Syntax Errorsβ’10 minutes
- Runtime Errorsβ’10 minutes
- Semantic Errorsβ’10 minutes
- Know Your Error Messagesβ’10 minutes
- Incremental Programmingβ’10 minutes
- Common Errorsβ’10 minutes
- Practice Assignment - Turtle and Object Mechanicsβ’10 minutes
- Gallery Tool: Turtle Drawingβ’60 minutes
In week two you will use the lectures and the Runestone textbook to understand the basics of a few python data types - lists, strings, tuples - as well as a control structure - for loops. By the end of this week, you will be able to write more complex programs that create drawings by incorporating for loops. Finally, we will present the basics of an accumulation pattern to you, which will be expanded on in each week for the rest of the course.
What's included
22 videos1 assignment24 app items
22 videosβ’Total 110 minutes
- Introduction: Lists and Stringsβ’1 minute
- Stringsβ’8 minutes
- Listsβ’3 minutes
- Tuplesβ’3 minutes
- The Index Operatorβ’8 minutes
- Lengthβ’7 minutes
- The Slice Operatorβ’11 minutes
- Examples of Slicing and Indexingβ’7 minutes
- Concatenation and Repetitionβ’6 minutes
- Count and Indexβ’10 minutes
- Split and Joinβ’7 minutes
- Conclusion: Lists and Stringsβ’1 minute
- Introduction: Iterationβ’1 minute
- The For Loopβ’12 minutes
- The Accumulator Patternβ’5 minutes
- The Range Functionβ’5 minutes
- Conclusion: Iterationβ’1 minute
- Introduction: The Way of the Programmerβ’1 minute
- Naming Your Variables in For Loopsβ’3 minutes
- Printing Intermediate Resultsβ’4 minutes
- Keeping Track of Your Iterator Variable and Your Iterableβ’4 minutes
- Conclusion: The Way of the Programmerβ’1 minute
1 assignmentβ’Total 4 minutes
- Optional - What Did You Use to Practice This Week?β’4 minutes
24 app itemsβ’Total 250 minutes
- Assessment - Lists and Stringsβ’15 minutes
- Assessment - Week Twoβ’15 minutes
- Interactive Textbook Practice Opportunityβ’10 minutes
- Introduction: Sequencesβ’10 minutes
- Strings, Lists, and Tuplesβ’10 minutes
- Index Operator: Working with the Characters of a String and Accessing Elements in a Listβ’10 minutes
- Disambiguating []: Creation vs. Indexingβ’10 minutes
- Lengthβ’10 minutes
- The Slice Operatorβ’10 minutes
- Concatenation and Repetitionβ’10 minutes
- Count and Indexβ’10 minutes
- Splitting and Joining Stringsβ’10 minutes
- Introduction: Iterationβ’10 minutes
- The for Loopβ’10 minutes
- Flow of Execution of the for Loopβ’10 minutes
- Strings and for Loopsβ’10 minutes
- Lists and for Loopsβ’10 minutes
- The Accumulator Pattern and the Range Functionβ’10 minutes
- (Optional) Traversal and the for Loop: By Indexβ’10 minutes
- (Optional) Nested Iteration: Image Processingβ’10 minutes
- (Optional) The Gory Details: Iterablesβ’10 minutes
- Naming Variables in For Loopsβ’10 minutes
- Printing Intermediate Resultsβ’10 minutes
- Keeping Track of Your Iterator Variable and Your Iterableβ’10 minutes
In week three you will learn a new python data type - the boolean - as well as another control structure - conditional execution. Through the use of video lectures and the Runestone textbook, you will learn what Binary, Unary, Nested, and Chained Conditionals are, as well as how to incorporate conditionals within an accumulation pattern.
What's included
13 videos1 assignment17 app items
13 videosβ’Total 77 minutes
- Introduction: Boolean Expressionsβ’1 minute
- Boolean Expressionsβ’8 minutes
- Logical Operatorsβ’11 minutes
- The in and not in Operatorsβ’3 minutes
- Precedence of Operatorsβ’2 minutes
- Automated Tests with assertβ’8 minutes
- Conclusion: Boolean Expressionsβ’1 minute
- Introduction: Conditional Executionβ’1 minute
- Conditional Executionβ’9 minutes
- Unary Selection, Nested Conditionals, and Chained Conditionalsβ’16 minutes
- Testing Conditionalsβ’5 minutes
- The Accumulator Pattern with Conditionals and Accumulating a Maximum Valueβ’11 minutes
- Conclusion: Conditional Executionβ’1 minute
1 assignmentβ’Total 4 minutes
- Optional - What Did You Use to Practice This Week?β’4 minutes
17 app itemsβ’Total 175 minutes
- Assessment - Week Threeβ’15 minutes
- Interactive Textbook Practice Opportunityβ’10 minutes
- Intro: What We Can Do with Turtles and Conditionalsβ’10 minutes
- Boolean Values and Boolean Expressionsβ’10 minutes
- Logical Operatorsβ’10 minutes
- The in and not in Operatorsβ’10 minutes
- Precedence of Operatorsβ’10 minutes
- Introduction: Test Casesβ’10 minutes
- Checking Assumptions About Data Typesβ’10 minutes
- Checking Other Assumptionsβ’10 minutes
- Conditional Execution: Binary Selectionβ’10 minutes
- Omitting the else Clause: Unary Selectionβ’10 minutes
- Nested Conditionalsβ’10 minutes
- Chained Conditionalsβ’10 minutes
- Make a Flow Chart before You Write Your Codeβ’10 minutes
- Testing Conditionalsβ’10 minutes
- The Accumulator Pattern with Conditionalsβ’10 minutes
In week four we will present deeper knowledge on using lists, strings, and python objects in general. We will also cover how to use the accumulation pattern with lists and with strings. The final assignment will test your knowledge and skills through application, much like previous assessments and assignments did, though with a more difficult set of tasks now that you have learned the basics.
What's included
23 videos2 readings21 app items
23 videosβ’Total 96 minutes
- Introduction - Sequence Mutationβ’1 minute
- Mutabilityβ’12 minutes
- List Element Deletionβ’2 minutes
- Objects and Referencesβ’4 minutes
- Aliasingβ’3 minutes
- Cloning Listsβ’3 minutes
- Conclusion - Sequence Mutationβ’1 minute
- Introduction - Methods on Lists and Stringsβ’1 minute
- Methods on Listsβ’9 minutes
- Append vs. Concatenateβ’8 minutes
- Non-Mutating Methods on Stringsβ’8 minutes
- String Format Methodβ’8 minutes
- f-stringsβ’5 minutes
- Conclusion: Methods on Lists and Stringsβ’1 minute
- Introduction - Accumulating Lists and Stringsβ’1 minute
- The Accumulator Pattern with Listsβ’5 minutes
- The Accumulator Pattern with Stringsβ’4 minutes
- Conclusion: Accumulating Lists and Stringsβ’1 minute
- Introduction - Way of the Programmerβ’1 minute
- Making Reference Diagramsβ’4 minutes
- Accumulator Pattern Strategiesβ’9 minutes
- Conclusion - Way of the Programmerβ’1 minute
- Introduction - Final Course Assignmentβ’4 minutes
2 readingsβ’Total 20 minutes
- Course Feedbackβ’10 minutes
- Keep Learning with Michigan Onlineβ’10 minutes
21 app itemsβ’Total 280 minutes
- Assessment - Sequence Mutationβ’15 minutes
- Assessment - Methods: Lists and Stringsβ’15 minutes
- Assessment - Accumulating Lists and Stringsβ’15 minutes
- Assessment - Way of the Programmerβ’15 minutes
- Assignment: Final Course Assignmentβ’60 minutes
- Interactive Textbook Practice Opportunityβ’10 minutes
- Introduction: Transforming Sequencesβ’10 minutes
- Mutabilityβ’10 minutes
- List Element Deletionβ’10 minutes
- Objects and Referencesβ’10 minutes
- Aliasingβ’10 minutes
- Cloning Listsβ’10 minutes
- Methods on Listsβ’10 minutes
- Append vs. Concatenateβ’10 minutes
- Non-Mutating Methods on Stringsβ’10 minutes
- String Format Methodβ’10 minutes
- f-Stringsβ’10 minutes
- The Accumulator Pattern with Listsβ’10 minutes
- The Accumulator Pattern with Stringsβ’10 minutes
- Accumulator Pattern Strategiesβ’10 minutes
- Don't Mutate A List That You Are Iterating Throughβ’10 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.
Instructors
Offered by
Explore more from Software Development
- P
Packt
Course
- Status: Free TrialK
KodeKloud
Course
- Status: Free Trial
- Status: Free TrialR
Rice University
Course
Why people choose Coursera for their career
Learner reviews
- 5 stars
84.01%
- 4 stars
13.69%
- 3 stars
1.40%
- 2 stars
0.35%
- 1 star
0.53%
Showing 3 of 18432
Reviewed on May 30, 2020
This course is very good for beginners. The content and flow of the course is amazing. online practice tool to run our codes online without installing any software makes is even more user friendly.
Reviewed on May 1, 2023
Great course and easy to follow. The only suggestion I have is to do lesson 2 the best you can then move on because some of the practice questions have answers from lessons that come after this one.
Reviewed on Aug 8, 2020
It was really a fantastic course, my first ever online course. I enjoyed taking this course and have learned almost all the basic concepts of Python. The lectures were so good through the course.
Frequently asked questions
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
Yes. In select learning programs, you can apply for financial aid or a scholarship if you canβt afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, youβll find a link to apply on the description page.
More questions
Financial aid available,
