# Definition 

A number is a **_Special Number_** *if it’s digits only consist 0, 1, 2, 3, 4 or 5*

**_Given_** a number *determine if it special number or not* .  



# Warm-up (Highly recommended)

# [Playing With Numbers Series](https://www.codewars.com/collections/playing-with-numbers)
___

# Notes 

* **_The number_** passed will be **_positive_** (N > 0) .

* All **single-digit numbers** with in the interval **_[0:5]_** are considered as **_special number_**. 
___

# Input >> Output Examples

```
specialNumber(2) ==> return "Special!!"
```
## Explanation: 

It's **_a single-digit number_** within the interval **_[0:5]_** . 

```
specialNumber(9) ==> return "NOT!!"
```
## Explanation:

Although, it's a single-digit number but **_Outside the interval [0:5]_** .

```
specialNumber(23) ==> return "Special!!"
```
## Explanation: 

All **_the number's digits_** formed from the interval **_[0:5]_** digits .

```
specialNumber(39) ==> return "NOT!!"
```
## Explanation: 

Although, *there is a digit (3) Within the interval* **_But_** **_the second digit is not (Must be ALL The Number's Digits )_** .

```
specialNumber(59) ==> return "NOT!!"
```
## Explanation:  

Although, *there is a digit (5) Within the interval* **_But_** **_the second digit is not (Must be ALL The Number's Digits )_** .

```
specialNumber(513) ==> return "Special!!"
```
___
```
specialNumber(709) ==> return "NOT!!"
```
___

# [For More Enjoyable Katas](http://www.codewars.com/users/MrZizoScream/authored)          

### ALL translation are welcomed

## Enjoy Learning !!
# Zizou

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Mathematics

Starter code: def special_number(number):
	

Solutions:
def special_number(n):
	return 'Special!!' if max(str(n)) <= '5' else 'NOT!!'


SPECIAL = set('012345')

def special_number(number):
	return 'Special!!' if set(str(number)) <= SPECIAL else 'NOT!!'


def special_number(n):
	return 'Special!!' if all((int(e) < 6 for e in str(n))) else 'NOT!!'


import re

def special_number(number):
	return 'Special!!' if re.match('^[0-5]+$', str(number)) else 'NOT!!'


def special_number(n):
	return 'Special!!' if set(str(n)) <= set('012345') else 'NOT!!'


def special_number(number):
	return ('Special!!', 'NOT!!')[max(str(number)) > '5']


def special_number(number):
	return next(('NOT!!' for i in str(number) if i in '6789'), 'Special!!')


def special_number(n):
	condition = str(n).translate(str(n).maketrans(dict.fromkeys('012345')))
	return 'Special!!' if not condition else 'NOT!!'


def special_number(number):
	return ['NOT!!', 'Special!!'][all(map(lambda x: x >= 0 and x <= 5, map(int, str(number))))]