모두를 위한 파이썬_Chapter06

제이브로·2021년 10월 9일
0

모두를위한파이썬

목록 보기
8/13

Chapter 06

6.5 Write code using find() and string slicing (see section 6.10) to extract the number at the end of the line below.
Convert the extracted value to a floating point number and print it out.

text = "X-DSPAM-Confidence:    0.8475"
txt = text.find('0')
print(float(text[txt:]))
profile
기록하지 않으면 기록되지 않는다.

0개의 댓글