logo

Crowdly

Browser

Add to Chrome

What does the following code print to the terminal when executed? Wat druk die...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What does the following code print to the terminal when executed?

Wat druk die volgende kode na die teminaal wanneer dit uitgevoer word?

#printobjects.py

import stdio

def main():

    GEOMETRIC_OBJECT = ["triangle", "square", "circle", "diamond", "pentagon"]

    COLOR = ["red", "blue","green", "yellow"]

    for col in COLOR:

        for gobj in GEOMETRIC_OBJECT:

            stdio.writeln(col+" "+gobj)

if __name__ == "__main__": main()

More questions like this

Want instant access to all verified answers on stemlearn.sun.ac.za?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome