for ch in "john.smith@pythoninstitute.org": if ch == "@": break print (ch, end="")| Create a program with a for loop and a break statement. The program should iterate over characters in an email address, exit the loop when it reaches after the @ symbol, and print the part before @ on one line. Create a program with a for loop and a break statement. The program should iterate over characters in an email address, exit the loop when it complete the loop. Create a program with a for loop and a break statement. The program should iterate over characters in an email address, exit the loop when it reaches before the symbol, and print the part before @ on one line. none of the above Create a program with a for loop and a break statement. The program should iterate over characters in an email address, exit the loop when it reaches the @ symbol, and print the part before @ on one line.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question
code bellow
for ch in "john.smith@pythoninstitute.org":
if ch == "@":
break
print (ch, end="")|
Create a program with a for loop and a
break statement. The program should
iterate over characters in an email address,
exit the loop when it reaches after the @
symbol, and print the part before @ on one
line.
Create a program with a for loop and a
break statement. The program should
iterate over characters in an email address,
exit the loop when it complete the loop.
Create a program with a for loop and a
break statement. The program should
iterate over characters in an email address,
exit the loop when it reaches before the @
symbol, and print the part before @ on one
line.
none of the above
Create a program with a for loop and a
break statement. The program should
iterate over characters in an email address,
exit the loop when it reaches the @ symbol,
and print the part before @ on one line.
Transcribed Image Text:code bellow for ch in "john.smith@pythoninstitute.org": if ch == "@": break print (ch, end="")| Create a program with a for loop and a break statement. The program should iterate over characters in an email address, exit the loop when it reaches after the @ symbol, and print the part before @ on one line. Create a program with a for loop and a break statement. The program should iterate over characters in an email address, exit the loop when it complete the loop. Create a program with a for loop and a break statement. The program should iterate over characters in an email address, exit the loop when it reaches before the @ symbol, and print the part before @ on one line. none of the above Create a program with a for loop and a break statement. The program should iterate over characters in an email address, exit the loop when it reaches the @ symbol, and print the part before @ on one line.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Basics of loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT