Какими будут результаты выполнения фрагментов про 1. Для чего предназначен оператор break? граммы?

a)

for letter in 'Стол': if letter == 'т':

break

print (letter)

b)

for k in 'Python': if k == 't':

break

print ('Current Letter: ', k)

c)

var = 10

while var > 0:

print ('Current variable value:', var) var = var - 1

if var == 5:

break

print ('Good bye!')
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.