Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LAB ACTIVITY* 6.6 . 7 : Warm up : Parsing strings ( Python 3) main . py # TYPE Your code here while ( True

image text in transcribedimage text in transcribed
LAB ACTIVITY* 6.6 . 7 : Warm up : Parsing strings ( Python 3) main . py # TYPE Your code here while ( True ) :` inp_ str = input ( ' Enter input string : " n' ] if ( inp_ str = = " 9 " ] :` break ;" [O \\ITI while ( inp_ str . Find! ' , ' ] = = = 11 :` 10 print ! ' Error : no comma in string ' ] 11 inp_ str = input ( ' Enter input string in ' ] 12 13 14 15 parts = inp_ str . splitt' , ' ] 16 first = parts [ D ] . Stripe !" 17 Second = part s [ 1 ] . Stripe ! 10 19 print ! ' First word : ' , First !" 20 print ! ' Second word : " , Second !" 21 print ( " " n'] 27Enter program input (optional) b Run program Input (from above) main.py (Your program) Output (shown below) Program output displayed here Enter input string: Error: no comma in string Enter input string Error: no comma in string Enter input string Traceback (most recent call last) : File "main . py", line 11, in inp_str = input( 'Enter input string\ ' ) EOFError: EOF when reading a line

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions