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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Matlab question: use switch and anythe lottery game matches three different integer numbers between 1 and 10. winning depends on how many matching numbers are provided by a player. the player provides three different integers between 1 and 10.if there is a match of all 3 numbers, the winning $ 1000.if there is a match with 2 numbers, the winning $ 10.if there is a match of all with 1 numbers, the winning $ 1.with no match, the winning is $0.write a function lottery3 that checks three numbers provided by a player and determine the winning amount. if the user mistakenly enters same number twice/thrice and if that number matches one of the winning numbers, the code should count that number only once and display correct result. the player doesn’t have to guess the order of numbers.the input to the function lottery3 can have up to two input arguments. the first input argument is a row array numbers with 3 numbers. if the second argument input testcode is present, and is a row vector of 3 values, the function lottery3 uses the code in testcode as the three winning numbers (the test must be three different integer numbers between 1 and 10), else three different numbers will be automatically generated by testcode.the ouput should return the variable winnings and the three winning numbers in the row array winnumbers.hint: make use of the internal function any.restriction: the function must use switch-case statements to determine the winning.example #1: winning = lottery3( [1,2,1],[1,2,3])produceswinning =10example #2: [winning,winnumbers] = lottery3( [1,2,3])produceswinning =3winnumbers =8 5 3
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
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
question
Advanced Placement (AP), 08.04.2021 18:00
question
World Languages, 08.04.2021 18:00
Questions on the website: 13722367