Find The Number in Range (Python)
def test_range(n):
if n in range(3,9):
print( " %s is in the range"%str(n))
else :
print("The number is outside the given range.")
test_range(2)
Output :
5 is in the range
Find The Number in Range (Python)
def test_range(n):
if n in range(3,9):
print( " %s is in the range"%str(n))
else :
print("The number is outside the given range.")
test_range(2)
Output :
5 is in the range
Count Upper Case and Lower Case Word in a string (Python) def string_test(s): d={"UPPER_CASE":0, "LOWER_CASE":...
0 comments:
Post a Comment
gurnoorsingh5974@gmail.com