Question: In this assignment write the following in Python. Assume a= Hello world b='This is my first program' math_string=2+4*5 expression_string=a+ ' ' + b +' Tiger'

In this assignment write the following in Python.

Assume a= Hello world b='This is my first program' math_string=2+4*5 expression_string=a+ ' ' + b +' Tiger' then answer the following

 In this assignment write the following in Python. Assume a= Hello

Program Segment print (a b) print lena) print len(bra) c atb debt a print (c) print(d) print (c+d) print a split print(b split( print (math string find(+)) print math string.find('5')) print replace('i',o')) print (b) lb-b replace(i,o) print(b) print (eval(math string) print(eval(math string 2')) print expression string) print(eval(expression string)) result 5/6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!