Answered step by step
Verified Expert Solution
Question
1 Approved Answer
programming language in python Solicit string from the keyboard one after another till you get a null value input (null means nothing a Carriage Return
programming language in python Solicit string from the keyboard one after another till you get a null value input (null means nothing a Carriage Return hit). During the cycle, determine the length of the key-in. If it is an odd number length (1, 3, 5, ...) then add a colon (":") before concatenating with the next string, otherwise when even number (2, 4, 6, ...) add a dash (") at the end before connecting. Discard (not re-solicit, simply ignore) all numeric input values (any valid integer & float). Garbage entry is considered valid string. For the last entry do not append dash or colon. (Helping video is here, turn off computer volume) At the end, print out in one line the concatenated resulting string. See illustration on the right. 23.45 Hello World 801 $2320 'OK' 511 %#6& Wmm Hello World: $2320:'OK'-4366 mm: OK
programming language in python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started