0
0
AI for Everyoneknowledge~10 mins

Building simple automations with AI tools in AI for Everyone - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start an automation that sends a greeting message.

AI for Everyone
automation.start([1]="Hello, welcome!")
Drag options to blanks, or click blank then click option'
Amessage
Btext
Ccontent
Dgreet
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'text' instead of 'message' which is not recognized by the automation.
Using 'greet' which is not a valid key.
2fill in blank
medium

Complete the code to check if the AI tool is ready before running the automation.

AI for Everyone
if ai_tool.[1]():
    automation.run()
Drag options to blanks, or click blank then click option'
Astart
Blaunch
Cexecute
Dis_ready
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' which initiates the tool rather than checking status.
Using 'execute' which runs a task but does not check readiness.
3fill in blank
hard

Fix the error in the code to correctly save the automation result.

AI for Everyone
result = automation.run()
automation.[1](result)
Drag options to blanks, or click blank then click option'
Asave
Bstore
Crecord
Dsave_result
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'store' which is not a defined method here.
Using 'save_result' which is not recognized by the tool.
4fill in blank
hard

Fill both blanks to create a filter that runs the automation only if the input text contains 'help'.

AI for Everyone
if '[1]' in input_text.[2]():
    automation.run()
Drag options to blanks, or click blank then click option'
Ahelp
Blower
Cupper
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' instead of a text method for the second blank.
Using 'upper' which would require the keyword to be uppercase.
5fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps each command to its length if the length is greater than 3.

AI for Everyone
command_lengths = {: {BLANK_2}} for [2] in commands if len({{BLANK_3}}) > 3
Drag options to blanks, or click blank then click option'
Acmd
Blen(cmd)
D{
Attempts:
3 left
💡 Hint
Common Mistakes
Not starting the comprehension with '{'.
Using different variable names inconsistently.