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