LoginSignup
0
0

islower()とは

Posted at

islower()とは

islowerとは、pythonの文字列メソッドの一つで、文字列が全て小文字で構成されているかどうかをチェックします。
以下に例を示します。

sample.py
s = "helloworld"
print(s.islower())  # 出力: True

s = "Hello World"
print(s.islower())  # 出力: False

この例では、最初の文字列"helloworld"は全て小文字で構成されいるため、s.islower()はTrueを返します。一方、二つ目の文字列"Hello World"には大文字が含まれているため、s.islower()はFalseを返します。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0