Skip to content

Instantly share code, notes, and snippets.

@RaMSFT
Created October 14, 2022 09:03
Show Gist options
  • Select an option

  • Save RaMSFT/5b4e9265f2da11341f6ee396cb3631e1 to your computer and use it in GitHub Desktop.

Select an option

Save RaMSFT/5b4e9265f2da11341f6ee396cb3631e1 to your computer and use it in GitHub Desktop.
def range_of_num(start, end):
if start < end:
result = list(range(start + 1, end))
else:
result = "Wrong input..!! Range Start number must be Less than end number"
return result
print(range_of_num(2, 4))
print(range_of_num(5, 9))
print(range_of_num(2, 11))
print(range_of_num(20, 4))
print(range_of_num(2, 2))
print(range_of_num(2, 40))
print(range_of_num(3, 4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment