logo

Crowdly

Browser

Add to Chrome

What is printed to the screen if the following Python3 program is executed? Wa...

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

What is printed to the screen if the following Python3 program is executed?

Wat word na die skerm gedruk as die volgende Python3 program uitgevoer word?

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

#ruler.py

import stdio

def main():

  x = 1234

  ruler = ""

  for k in range(4):

    digit = str(x%10)

    x //= 10

    ruler = ruler + digit + ruler

  stdio.writeln(ruler)

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