Created
October 14, 2022 09:03
-
-
Save RaMSFT/5b4e9265f2da11341f6ee396cb3631e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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