logo

Crowdly

Browser

Add to Chrome

What does the following Python program print to the screen when executed? Wat ...

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

What does the following Python program print to the screen when executed?

Wat druk die volgende Python program na die skerm wanneer dit uitgevoer word?

#--------------------------------

#ifexample1.py

import stdio

def main():

   X = 3

   Y = 7

   X = X + Y

Y = X - Y

X = X - Y

if not (3*X < 2*Y):

       X = 4*X + 3*Y

       Y = X*X + Y

    else:

       Y = Y*Y + 2*X**2

       X = X - Y

    stdio.writeln(str(X)+" "+str(Y))

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