Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wpforms-lite domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/ragipunal.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the businext domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/ragipunal.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the businext domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/ragipunal.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/ragipunal.com/wp-includes/functions.php on line 6114
Python While Else Yapısı - RAGIP ÜNAL

Blog

Python While Else Yapısı

If dışında else, while ile de kullanılmaktadır. Aşağıdaki program size bir fikir verecektir.

Program:

i = 0
while i < 10:
    print(i, " 10 dan küçüktür.")
    i+=1
else:
    print(i, " 10'a eşittir ve döngü burada biter.")

Çıktı:

0  10 dan küçüktür.
1  10 dan küçüktür.
2  10 dan küçüktür.
3  10 dan küçüktür.
4  10 dan küçüktür.
5  10 dan küçüktür.
6  10 dan küçüktür.
7  10 dan küçüktür.
8  10 dan küçüktür.
9  10 dan küçüktür.
10  10'a eşittir ve döngü burada biter.

010_while_else.py

Leave A Comment

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir