Given a number N, if the number is between 1 and 10 both inclusive then return the number in words (Lower case English Alphabets) otherwise return "not in range".
 
Example 1:
Input:
5
Output:
five
 
Example 2:
Input:
11
Output:
not in range
 
 
Your Task:
You don't need to read input or print anything. Your task is to complete the function isInRange() which takes an integer and if the number is between 1 and 10 both inclusive then return the number in words otherwise return "not in range".
 
Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)
Constraints:
1<=N<=10000

Source: geeksforgeeks | Difficulty: EASY

Starter code: #User function Template for python3

class Solution:

    def isInRange (ob,N):

        # code here 

Solutions:
class Solution:

	def isInRange(ob, N):
		switcher = {1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six', 7: 'seven', 8: 'eight', 9: 'nine', 10: 'ten'}
		return switcher.get(N, 'not in range')


class Solution:

	def isInRange(ob, N):
		if N in range(11):
			words = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']
			return words[N - 1]
		else:
			return 'not in range'


class Solution:

	def isInRange(ob, N):
		b = 'one'
		a = 'not in range'
		c = 'two'
		d = 'three'
		e = 'four'
		f = 'six'
		g = 'seven'
		h = 'eight'
		i = 'nine'
		j = 'ten'
		k = 'five'
		if N == 1:
			return b
		elif N == 2:
			return c
		elif N == 3:
			return d
		elif N == 4:
			return e
		elif N == 5:
			return k
		elif N == 6:
			return f
		elif N == 7:
			return g
		elif N == 8:
			return h
		elif N == 9:
			return i
		elif N == 10:
			return j
		else:
			return a


class Solution:

	def isInRange(ob, N):
		arr = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']
		if N > 10:
			return 'not in range'
		for i in range(len(arr) + 1):
			if str(i) in str(N - 1):
				return arr[i]
		else:
			return 'not in range'


class Solution:

	def isInRange(ob, N):
		l = 'one two three four five six seven eight nine ten'.split()
		if 1 <= N <= 10:
			return l[N - 1]
		else:
			return 'not in range'


class Solution:

	def isInRange(ob, N):
		a = ''
		if N == 1:
			a = 'one'
		elif N == 2:
			a = 'two'
		elif N == 3:
			a = 'three'
		elif N == 4:
			a = 'four'
		elif N == 5:
			a = 'five'
		elif N == 6:
			a = 'six'
		elif N == 7:
			a = 'seven'
		elif N == 8:
			a = 'eight'
		elif N == 9:
			a = 'nine'
		elif N == 10:
			a = 'ten'
		else:
			a = 'not in range'
		return a


L = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']

class Solution:

	def isInRange(ob, N):
		for i in range(10):
			if i + 1 == N:
				s = L[i]
				return s
			else:
				s = 'not in range'
		return s


class Solution:

	def isInRange(ob, N):
		lst = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']
		st = ''
		for i in range(1, len(lst) + 1):
			if N == i:
				st = lst[i - 1]
				break
			elif N != i:
				st = 'not in range'
		return st


class Solution:

	def isInRange(ob, N):
		numtoword = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']
		return numtoword[N] if N >= 1 and N <= 10 else 'not in range'


class Solution:

	def isInRange(ob, N):
		value = ''
		a = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']
		if N <= 10:
			for i in range(len(a)):
				if i == N:
					value = a[i]
			return value
		else:
			return 'not in range'


class Solution:

	def isInRange(ob, N):
		d = {1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six', 7: 'seven', 8: 'eight', 9: 'nine', 10: 'ten'}
		if 1 <= N and N <= 10:
			return d[N]
		return 'not in range'
if __name__ == '__main__':
	t = int(input())
	for _ in range(t):
		N = int(input())
		ob = Solution()
		print(ob.isInRange(N))