Python Functions Using Copilot
Students are learning about functions by working through the Copilot worksheet.Copyright Brian Herrod
Students use Microsoft Visual Studio Code and GitHub Copilot to master writing functions in Python, actively assessing the effectiveness of these tools to define future success criteria for engineers developing similar technologies. Through hands-on coding activities, they explore the significance of functions, enhancing code readability and enabling more innovative programming approaches. Additionally, students examine the impact of these technologies in programming, offering valuable suggestions to refine and advance engineering tools.
The concepts in this activity relate to real-world engineering by focusing on problem-solving and optimization. Functions in programming help create organized, reusable code, similar to designing efficient systems in engineering. Using Visual Studio Code and Copilot introduces students to tools that streamline workflows, enhancing productivity, much like the technologies engineers use. By evaluating and improving these tools, students engage in critical thinking and iterative testing, reflecting real-world engineering practices. This hands-on experience helps them develop and refine solutions effectively.
After this activity, students should be able to:
- Identify functions in Python and describe the role of functions in designing software.
- Identify a standard workflow for interacting with Copilot.
- Write effective functions with the assistance of Copilot.
