Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

loops - day1 -22/05/25

star
star
star
star
star
Last updated about 1 year ago
4 Nsɛmmisa
1
1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

What will the following code output? for i in range(3): print(i)

Asemmisa {{asɛmmisaAhyɛnsode}}
2.

How many times will 'Python' print? for i in range(5): print('Python')

Asemmisa {{asɛmmisaAhyɛnsode}}
3.

What output results from this loop? for i in range(2,5): print(i)

Asemmisa {{asɛmmisaAhyɛnsode}}
4.

What does this code print? for i in range(1,4): print(i*2)