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 4 years 1 Answer 761 views Master 0

Answer ( 1 )

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

Leave an answer

Browse
Browse