Python - Diving in: Let's Make a Splash - string, methods(upper, lower)
Head First Python: A Learner’s Guide to the Fundamentals of Python Programming, A Brain-Friendly Guide、 Paul Barry(著)、 O’Reilly Mediaの Chapter2.(Diving in: Let’s Make a Splash)、EXERCISE(26/82)の解答を求めてみる。
Jupyter(コード、入出力結果)
Drius.ipynb
fn = 'Darious-13-100m-Fly.txt'
fn.upper() == 'DARIOUS-13-100M-FLY.TXT'
True
fn.upper()
'DARIOUS-13-100M-FLY.TXT'
fn.lower() == 'darious-13-100m-fly.txt'
True
fn.lower()
'darious-13-100m-fly.txt'