Skip to main content
Activity (Hands-On)Grades 9 - 12

Python Conditionals Using AI Technology

A screenshot of Python source coding from a computer screen.Learning Python a great choice for engineers who want to create complex applications quickly and efficiently.

One way for engineers to be effective in creating designs is to understand technology tools support their efforts. These technology tools themselves are often designed by engineers! In this activity, students utilize Google's Colab and Google's Bard to master writing “if” statements in Python while also analyzing the effectiveness of an AI tool to define future success criteria for engineers developing tools like Bard. Engaging in various activities, students delve into the significance of conditionals, understanding how they enhance code readability and enable more innovative programming approaches. Moreover, students venture into exploring the effectiveness of AI technologies in programming, providing insightful suggestions for refining and engineering future AI tools.

Python is an object-oriented programming language, which means it is modular, reusable, and extensible. Learning Python a great choice for engineers who want to create complex applications quickly and efficiently. Python can also be used in web development, scientific computing, data analysis, machine learning, and artificial intelligence.

After this activity, students should be able to:

  • Identify current generative AI tools to help with programming and determine efficacy of these tools.
  • Use if statements in their code.
  • Analyze and debug code that uses if statements.
  • Solve coding problems that involve if statements.
  • Write prompts in Bard to get working code segments that utilize if statements.
  • Generate success criteria to engineering future generative AI tools.

More Like This