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, 22.06.2019 10:50
Using least squares fitting, you are to fit the data sets to the following models and solve for the parameters ai , where i is the index of the parameter. the input/output data for the systems are linked in the bblearn site. for each of the systems use matlab to plot the supplied data vs. the model fit on one plot. include your code in the solutions. (a) linear fit "lineardata.mat" y=a1x^3 + a2x^2 + a3x + a4 (b) plant fit "plantdata.mat g(s) = a1/(s + a2)
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
From excel to powerpoint, you can copy and paste a. cell ranges and charts, one at a time. b. cell ranges and charts, simultaneously. c. charts only. d. cell ranges only.
Answers: 3
question
Computers and Technology, 23.06.2019 19:00
Whose task it is to ensure that the product flows logically from one step to another?
Answers: 3
question
Computers and Technology, 24.06.2019 17:40
Pseudocode pld #6, pg. 117 start// declarations// number numbertoguess// number myguess; numbertoguess = 92// while myguess ! = numbertoguess// output " guess an integer number between 1 and 100"// input myguess// if (myguess == numbertoguess)// output "you guessed the correct number"// else// output "the number you guessed was incorrect. try again! "// end if// end while// output " for playing the guessing game. have a great day! "// stop
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
Social Studies, 04.05.2021 22:10