forked from TorahBibleCodes/TorahBibleCodes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod_17B_GetUserInput_SkipDistancesDMinMax.py
More file actions
33 lines (25 loc) · 1.55 KB
/
Copy pathmod_17B_GetUserInput_SkipDistancesDMinMax.py
File metadata and controls
33 lines (25 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
## BEGIN FUNCTION () #17B - GET USER INPUT - SKIP DISTANCES D MINIMUM / MAXIMUM; ##
def fn_GetUserInput(NumberOfSearchTerms):
"""
## MODULE.FUNCTION() #17B - GET USER INPUT - SKIP DISTANCES D MINIMUM / MAXIMUM; ## RETURNS
"""
## TEST PRINT OUTPUT
print("\n") ## PRINT SPACE
print("WITHIN FUNCTION: BEGIN FUNCTION #17B - GET USER INPUT - SKIP DISTANCES D MINIMUM / MAXIMUM;")
## GET USER INPUT ## TEXT CHOSEN = USER INPUT (TEXT STRING)
print("\n") ## PRINT SPACE
TextString1 = input("What is the lowest/smallest (NEGATIVE or POSITIVE) skip distance (d) you would like to use for this ELS search? (e.g. -100, -50, -10, -1, 1, 10, 50, 100):\n")
print("\n") ## PRINT SPACE
TextString2 = input("What is the highest/largest (NEGATIVE or POSITIVE) skip distance (d) you would like to use for this ELS search? (e.g. -100, -50, -10, -1, 1, 10, 50, 100):\n")
## CONVERT TEXT STRING TO INTEGER
SkipDistanceDMinimum = int(TextString1)
SkipDistanceDMaximum = int(TextString2)
## TEST PRINT OUTPUT
print("\n") ## PRINT SPACE
print(f"You have chosen to search for {NumberOfSearchTerms} ELS Search Term(s) with a skip distance(s) (d) from {SkipDistanceDMinimum} to {SkipDistanceDMaximum}.")
## TEST PRINT OUTPUT
print("\n") ## PRINT SPACE
print("WITHIN FUNCTION: END FUNCTION #17B - GET USER INPUT - SKIP DISTANCES D MINIMUM / MAXIMUM;")
## RETURN VARIABLES TO PROGRAM
return(SkipDistanceDMinimum, SkipDistanceDMaximum)
## END FUNCTION () #17B - GET USER INPUT - SKIP DISTANCES D MINIMUM / MAXIMUM;