conditional operator to check lower case

Question

Use a conditional operator to check if a string is lower case or not.

in progress 0
YashikaKhurana 55 years 1 Answer 801 views Master 0

Answer ( 1 )

  1. print( “lower case” if b.islower() else “not lower case” )

Leave an answer

Browse
Browse