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

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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!