def is_connected check_connect return False if check_connect lower fal

1
2
3
4
5
6
def is_connected(check_connect):
return False if check_connect.lower() == 'false' else True
def is_connected(check_connect):
return not check_connect.lower() == 'false'