This course focuses on mastering Python’s control flow mechanisms, including branching, looping, and functions. It covers essential concepts such as making decisions with if, if-else, and if-elif-else structures (branching), automating repetitive tasks using while and for loops (looping), and introduces functions as a higher-level form of flow control. Advanced topics like nested, hierarchical, and recursive functions are also explored, providing learners with tools to write organized, reusable, and efficient code.
This module introduces the concept of branching in Python, allowing programs to make decisions based on conditions. It covers different types of branching, including optional branching using if, alternative branching with if-else, and multi-branching with if-elif-else. Real-life examples will be provided to show how branching can be applied to solve practical problems.
涵盖的内容
6篇阅读材料1个作业4个非评分实验室
显示有关单元内容的信息
6篇阅读材料•总计71分钟
Course Updates and Accessibility Support•1分钟
BiteSize Pedagogy•10分钟
Assessment Strategy•10分钟
Course Overview•10分钟
Coursera Labs•10分钟
Interact with GenAI•30分钟
1个作业•总计30分钟
Test Your Understanding•30分钟
4个非评分实验室•总计105分钟
Optional Branching•15分钟
Alternative Branching•15分钟
Multiple Branching•15分钟
Case Studies•60分钟
Looping
第 2 单元•小时 后完成
单元详情
This module explores looping constructs in Python, focusing on condition-based loops using while and count-based loops using for. It introduces loop control mechanisms like break and continue to modify loop behavior. The module also includes real-life case studies to demonstrate how loops are used to solve repetitive tasks efficiently.
涵盖的内容
1篇阅读材料1个作业4个非评分实验室
显示有关单元内容的信息
1篇阅读材料•总计10分钟
Interact with GenAI•10分钟
1个作业•总计30分钟
Test Your Understanding•30分钟
4个非评分实验室•总计105分钟
Condition-based Repetition•15分钟
Count-based Repetition•15分钟
Magic Control•15分钟
Case Studies•60分钟
Basic Functions
第 3 单元•小时 后完成
单元详情
This module introduces the concept of functions in Python, explaining their importance in organizing and reusing code. It covers different types of functions, from those with no parameters to those with multiple parameters, and explains the distinction between arguments and parameters. Additionally, it explores default values, functions that return values of various types (numeric, string, boolean), and those that return multiple values.
涵盖的内容
1篇阅读材料1个作业11个非评分实验室
显示有关单元内容的信息
1篇阅读材料•总计30分钟
Interact with GenAI•30分钟
1个作业•总计30分钟
Test Your Understanding•30分钟
11个非评分实验室•总计165分钟
What are Functions? •15分钟
Functions with No Parameters•15分钟
Functions with One Parameter•15分钟
Functions with Two or More Parameters•15分钟
Passing Arguments•15分钟
Default Values•15分钟
Functions with Return Values•15分钟
Returning Numeric Values•15分钟
Returning String Values•15分钟
Returning Boolean Values•15分钟
Returning Multiple Values•15分钟
Advanced Functions
第 4 单元•小时 后完成
单元详情
This module explores advanced function concepts in Python, such as nested functions, hierarchical functions, and recursive functions. It explains how functions can be organized within other functions (nested) and how hierarchical function calls work. It also provides a deep dive into recursion, showing how functions can call themselves to solve complex problems.
CU Boulder is a dynamic community of scholars and learners on one of the most spectacular college campuses in the country. As one of 34 U.S. public institutions in the prestigious Association of American Universities (AAU), we have a proud tradition of academic excellence, with five Nobel laureates and more than 50 members of prestigious academic academies.
When will I have access to the lectures and assignments?
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.
What will I get if I subscribe to this Specialization?
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.
Is financial aid available?
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.