subject

Python 9.13 lab: warm up: parsing strings(1) prompt the user for a string that contains two strings separated by a comma. (1 pt)examples of strings that can be accepted: jill, allenjill , allenjill, allenex: enter input string: jill, allen(2) report an error if the input string does not contain a comma. continue to prompt until a valid string is entered. note: if the input contains a comma, then assume that the input also contains two strings. (2 pts)ex: enter input string: jill allenerror: no comma in string. enter input string: jill, allen(3) using string splitting, extract the two words from the input string and then remove any spaces. output the two words. (2 pts)ex: enter input string: jill, allenfirst word: jillsecond word: allen(4) using a loop, extend the program to handle multiple lines of input. continue until the user enters q to quit. (2 pts)ex: enter input string: jill, allenfirst word: jillsecond word: allenenter input string: golden , monkeyfirst word: goldensecond word: monkeyenter input string: washington, dcfirst word: washingtonsecond word: dcenter input string: q

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:00, briannaleiigh
Kirk found a local community college with a two-year program and he is comparing the cost with that of an out-of-state two-year school. what is the expected total cost for one year at the local community college if kirk lives at home? what is the expected total cost for one year at the out-of-state school if kirk lives on campus?
Answers: 2
image
Computers and Technology, 24.06.2019 11:00, asiaosterling
The program below has been generalized to read a user's input value for hourlywage. run the program. notice the user's input value of 10 is used. modify that input value, and run again. generalize the program to get user input values for workhoursperweek and workweeksperyear (change those variables' initializations to 0). run the program. monthsperyear will never change, so define that variable as final. use the standard for naming final variables. ex: final int max_length
Answers: 2
image
Computers and Technology, 25.06.2019 04:20, claraesson5581
Austin rare coins, inc., buys and sells rare coins, bullion, and other precious metals through eight web sites with different domain names. an unknown individual took control of austin's servers and transferred the domain names to another registrant without austin's permission. the new registrant began using the domain names to host malicious content—including hate letters to customers and fraudulent contact information—and to post customers' credit-card numbers and other private information, thereby tarnishing austin's goodwill. austin filed a suit in a federal district court against the new registrant under the anticybersquatting consumer protection act. is austin entitled to a transfer of the domain names? austin rare coins, inc., buys and sells rare coins, bullion, and other precious metals through eight web sites with different domain names
Answers: 3
image
Computers and Technology, 25.06.2019 04:30, greenbyron88
You can fit more raw files on a memory card than the jpeg files? truefalse
Answers: 1
You know the right answer?
Python 9.13 lab: warm up: parsing strings(1) prompt the user for a string that contains two string...

Questions in other subjects:

Konu
Mathematics, 06.05.2020 18:00