Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PO 0 8 makeinteger ( ' ac ' ) returns 0 , since there are no digits in ' ac ' . As another example,

PO08 makeinteger('ac') returns 0, since there are no digits in 'ac'. As another example, makeinteger('abc123def5k') returns 1235. Try makeinteger('098a765c432k'), which should return 98765432, since the leading O will not appear in the number. Your answer should be a number. The functions isdigit() and int() might help. If your function does what it should, choose True; otherwise choose False. Apply makeinteger() to the words in the following list and add up the resulting integers. ['0852eqh', '2245y4ng5b7y1223a8','r0501gubbb58ay7n1','702','59owo 7023sb0795g|','h1v0961676mt','1586z18c4p15','O6lx98371xf266g','77zx50b4','t983,'5kkboa3m899oz6w','3r6920ay486165','739n1d4','09m6056wOwa883','32b50419119f5,'586qc77ef9b2a22rprh5', 'wsekkq7k','59s38u54hbt','vO4mqgq06n216bo','zjc','29671870','2075bz705u641d1tind', 'e8ett1k0Oqia', '8c16n03k6993936cymwg','0711m5g6y','65bu39zsbkm8','504iv1nr7g7y9','778538peOcfikk', 'nr2v267qxvvhsp92395i','3gucoey94j7ivh314yeO'] What is the sum of the integers obtained using makeinteger() on the above list? A

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions