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 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 continue Deyimi - RAGIP ÜNAL

Blog

Python continue Deyimi

Döngü içinde belirli bir koşulun kontorlü ile bir sonraki döngü adımına gidilmesini gerçekleştirmek için continue deyimi kullanılır.

Program:

n=input("Üst Limit n....")
n=int(n)
toplam=0
miktar=0
for i in range(1,n+1):
    if i%3 != 0: continue
    print("Sayı=", i)
    toplam+=i
    miktar+=1
print("3-",n," arasındaki 3 ile bölünebilen sayı miktarı", miktar)
print("Bu sayıların toplamı=", toplam)

Çıktı:

Sayı= 3
Sayı= 6
Sayı= 9
Sayı= 12
Sayı= 15
Sayı= 18
3- 20  arasındaki 3 ile bölünebilen sayı miktarı 6
Bu sayıların toplamı= 63

018_for_continue.py

Leave A Comment

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