Anasayfa
/
Teknoloji
/
What Is the Output of the Following Code? for I in Range (3): Print(i) 0123 123 012 Error

Soru

What is the output of the following code? for i in range (3): print(i) 0123 123 012 error

Çözüm

4.4 (200 Oylar)
Ramazan
Uzman doğrulaması
Elit · 8 yıl öğretmeni

Cevap

The output of the code is:```012```The `for` loop iterates over a range of numbers from 0 to 2 (since the upper limit is not specified, it defaults to the length of the range). In each iteration, the value of `i` is printed.