Travel and Jiu-Jitsu Adventures.

Thoughts

midpoint

What have I been up to? Just spending my days dealing with enrichment’s of bacterial laden food and stools, and evenings staring at a computer reading and doing hw. I can’t wait for the semester to be over. It’s getting close though, and then I’ll be able to get back on the mats. No news on the job front, had an interview scheduled, but on the day of they emailed me and said they filled the position and not to bother to come in. Pricks. I’m gonna get mine one of these days, with school and maybe some dumb luck, it will happen. If knowledge is the key then just show me the lock…

#Use find and string slicing to extract the portion of the string after the colon character,
#and then use the float function to convert the extracted string into a floating point number.

##Preliminary Variables
##Input
ex_str = 'X-DSPAM-Confidence: 0.8475 '

findy1 = ex_str.find(':')#find position
print(findy1,'The position of the colon in the string.')

cut1 = (ex_str[1+findy1:])#slice string
print(cut1,'whats left after I cut the string in front of the colon.')

whitey = cut1#start stripping
whitey = whitey.strip()
##Processing
##Output
print(whitey,'Heres where I stripped the extra white space from the string.')
print(type(whitey))#what do i have

conv = whitey#start converting
fini = float(conv)
print(type(fini))
print("These last two showed the type of my object 'whitey' before and after,converting it to a float 'fini'.")
print("This example isn't complex & in no way am I skilled @ this, but i'm learning & someday, I might be.")