Python Başka Bir Şey Deneyin
Başka Deneyin
else
Herhangi bir hata oluşmadıysa yürütülecek bir kod bloğunu tanımlamak için anahtar kelimeyi kullanabilirsiniz :
Örnek
Bu örnekte, try
blok herhangi bir hata oluşturmaz:
try:
print("Hello")
except:
print("Something went
wrong")
else:
print("Nothing went wrong")