• Предмет: Информатика
  • Автор: arajlymserik98
  • Вопрос задан 3 месяца назад

for s in 'python': if s== 'h': break print(s, end = "')​

Ответы

Ответ дал: 1tsTwo
0

This code will result in a syntax error.

The correct code should be:

for s in 'python':

   if s == 'h':

       break

   print(s, end="'")

This code will iterate through the characters of the string 'python', and if the current character is 'h', the loop will break and the program will stop iterating. If the current character is not 'h', the program will print the current character followed by a single


mrneshetov: ..
Вас заинтересует