Please help me with this homework problem, using python 2.X
Given the following python statement…
avg_str = ‘Average value read:0.72903’
Use the find() method andstring slicing to extract the portion ofthe string after the colon character and then use thefloat() function to convert the extractedstring into a floating point value. Your code should provide a“general” solution, meaning that the number you extract could beany floating point number (it may or may not be preceded by aspace, it may or may not begin with “0”, it may or may not end with“3”, and its length is not known before your program executes). Ageneralized solution
PayPal Gateway not configured
PayPal Gateway not configured