Packt

Introduction to Programming Using Python

享受 3 個月的 Coursera Plus 40% 的折扣,節省讓您 閃耀的技能。立即保存

Packt

Introduction to Programming Using Python

包含在 Coursera Plus

深入了解一个主题并学习基础知识。
初级 等级

推荐体验

2 周 完成
在 10 小时 一周
灵活的计划
自行安排学习进度
深入了解一个主题并学习基础知识。
初级 等级

推荐体验

2 周 完成
在 10 小时 一周
灵活的计划
自行安排学习进度

您将学到什么

  • Understand and apply basic Python data types and operations in programming.

  • Create and modify lists, use loops, and implement conditional logic in Python.

  • Write and utilize custom functions to improve code reusability and organization.

要了解的详细信息

可分享的证书

添加到您的领英档案

最近已更新!

May 2026

作业

25 项作业

授课语言:英语(English)

了解顶级公司的员工如何掌握热门技能

Petrobras, TATA, Danone, Capgemini, P&G 和 L'Oreal 的徽标

该课程共有25个模块

In this module, we will introduce the Python programming language and cover its essential features. We’ll explore basic data types such as strings, integers, and booleans. You will also learn how to assign variables and apply basic operations, setting the foundation for building your Python programming skills.

涵盖的内容

2个视频1篇阅读材料

In this module, we will dive into efficient variable assignment techniques, focusing on using multiple assignment statements. You will learn how to combine variable definition and assignment for related variables, making your code cleaner and more efficient.

涵盖的内容

1个视频1个作业

In this module, we will explore how to convert data between different types in Python, such as converting strings to integers. We will also address common issues that arise during conversions and provide tips on when and why type conversions are necessary in your programs.

涵盖的内容

1个视频1个作业

In this module, we will introduce the list data type, one of Python’s most important structures. You’ll learn how to create lists, use list indexing, and understand their use in handling collections of data effectively.

涵盖的内容

1个视频1个作业

In this module, we will continue exploring lists by demonstrating how to modify them. You will learn how to delete and change elements, as well as how to update sections of lists for more advanced data manipulation.

涵盖的内容

1个视频1个作业

In this module, we will examine sorting and reversing lists in Python. You will learn how to arrange list elements in a specified order and reverse them, gaining an essential skill for manipulating data effectively.

涵盖的内容

1个视频1个作业

In this module, we will explore list slicing, an essential technique for accessing sublists. You will learn how to use slice syntax to extract specific portions of a list and apply these techniques to real-world data retrieval problems.

涵盖的内容

1个视频1个作业

In this module, we will examine various Python operators, focusing on mathematical and comparison operators. You will learn how to perform calculations and comparisons, building the foundation for complex logic in your programs.

涵盖的内容

1个视频1个作业

In this module, we will delve into operator precedence and the order of operations in Python. You will learn how expressions are evaluated and how to structure your code for clarity and accuracy using parentheses when necessary.

涵盖的内容

1个视频1个作业

In this module, we will introduce if statements as a way to create conditional logic in your programs. You will learn how to handle different outcomes with else and elif statements to add decision-making capabilities to your code.

涵盖的内容

1个视频1个作业

In this module, we will extend the use of conditional logic by introducing compound conditional expressions. You will learn how to test multiple conditions using logical operators and refine your decision-making logic in Python.

涵盖的内容

1个视频1个作业

In this module, we will introduce for loops as a tool to iterate over data collections. You will learn how to automate repetitive tasks and efficiently process elements in data structures such as lists and ranges.

涵盖的内容

1个视频1个作业

In this module, we will explore while loops and how they differ from for loops. You will learn how to control loop execution with conditions and avoid common pitfalls such as infinite loops.

涵盖的内容

1个视频1个作业

In this module, we will explore nested for loops, which allow you to handle more complex iteration tasks. You will learn how to write and optimize nested loops, understanding their performance considerations in larger programs.

涵盖的内容

1个视频1个作业

In this module, we will focus on reading files in Python. You will learn how to open and read file contents using basic Python functions, along with the importance of managing file resources safely using context managers.

涵盖的内容

1个视频1个作业

In this module, we will explore how to write to files and copy files in Python. You will understand the difference between various file modes and apply these techniques to automate file copying tasks.

涵盖的内容

1个视频1个作业

In this module, we will automate email merging to send personalized emails. You’ll learn how to work with lists and files to generate dynamic email content, which you can send to multiple recipients at once.

涵盖的内容

1个视频1个作业

In this module, we will look at reading inputs from the console and formatting outputs for user readability. You will gain hands-on experience in handling user data and displaying it in an organized and understandable manner.

涵盖的内容

1个视频1个作业

In this module, we will explore handling command-line arguments in Python. You will learn how to build Python tools that accept and process input directly from the command line to enhance your programs' functionality.

涵盖的内容

1个视频1个作业

In this module, we will dive into defining custom functions, one of the core features of Python. You will learn how to create functions to break your code into reusable components, making your code more efficient and maintainable.

涵盖的内容

1个视频1个作业

In this module, we will explore the concept of default arguments. You will learn how to provide default values for function parameters, making your functions more flexible and user-friendly.

涵盖的内容

1个视频1个作业

In this module, we will discuss keyword and positional arguments in Python functions. You will learn how to use both types of arguments effectively and when each is the best choice for making your code clear and easy to understand.

涵盖的内容

1个视频1个作业

In this module, we will cover exception handling in Python using try-except blocks. You will learn how to catch and manage runtime errors to keep your programs running smoothly, and when it's appropriate to let an error stop the program.

涵盖的内容

1个视频1个作业

In this module, we will introduce Python’s math and random modules. You will learn how to use these standard libraries to handle complex mathematical operations and generate random data for your applications.

涵盖的内容

1个视频1个作业

In this module, we will explore how to use Python’s datetime and os modules. You’ll learn to manage file metadata and perform time-based tasks in your programs, improving the utility and efficiency of your code.

涵盖的内容

1个视频2个作业

位教师

Packt - Course Instructors
Packt
1,857 门课程514,430 名学生

提供方

Packt

从 Software Development 浏览更多内容

人们为什么选择 Coursera 来帮助自己实现职业发展

Felipe M.

自 2018开始学习的学生
''能够按照自己的速度和节奏学习课程是一次很棒的经历。只要符合自己的时间表和心情,我就可以学习。'

Jennifer J.

自 2020开始学习的学生
''我直接将从课程中学到的概念和技能应用到一个令人兴奋的新工作项目中。'

Larry W.

自 2021开始学习的学生
''如果我的大学不提供我需要的主题课程,Coursera 便是最好的去处之一。'

Chaitanya A.

''学习不仅仅是在工作中做的更好:它远不止于此。Coursera 让我无限制地学习。'

常见问题