Answered step by step
Verified Expert Solution
Link Copied!

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 image text in transcribed
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

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

How was their resistance overcome?

Answered: 1 week ago

Question

8. Explain the contact hypothesis.

Answered: 1 week ago

Question

7. Identify four antecedents that influence intercultural contact.

Answered: 1 week ago