How many lines does the following snippet output?

How many lines does the following snippet output?

A. three
B. one
C. two
D. four

Download Printable PDF. VALID exam to help you PASS.

4 thoughts on “How many lines does the following snippet output?

  1. for i in range(1,3):
    print(‘*’,end=”)
    else:
    print(‘*’)

    D:\newpy\venv\Scripts\python.exe D:/py/pythonProject/main.py
    ***

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.