+ 30

[ ASSIGNMENT: ] Special Number

A number is a Special Number if it’s digits only consist 0, 1, 2, 3, 4 or 5. TASK: Given a number, determine if it special number or not. NOTE! - The number passed will be positive (N>0). - All single-digit numbers with in the interval [0:5] are considered as special number. For Example:: 1. specialNumber(2) --> return "Special!:)" Explanation: It's a single-digit number within the interval [0:5]. 2. specialNumber(9) --> return "NOT!!" Explanation: Although, it's a single-digit number but Outside the interval [0:5]. 3. specialNumber(23) --> return"Special!:)" Explanation: All the number's digits formed from the interval [0:5] digits. 4. 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). HappyCodings!:-) https://code.sololearn.com/WBGrCGA5S9Kx/?ref=app

25th May 2018, 11:38 AM
Danijel Ivanović
Danijel Ivanović - avatar
22 Antworten
+ 27
https://code.sololearn.com/cR4sM0445bcu/?ref=app
27th May 2018, 9:12 AM
MeanMachine
MeanMachine - avatar
12th Jul 2018, 6:33 AM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
+ 23
25th May 2018, 1:38 PM
🌛DT🌜
🌛DT🌜 - avatar
+ 19
https://code.sololearn.com/cANj7Md6WV6v/?ref=app
26th May 2018, 8:12 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 14
https://code.sololearn.com/cm5Uh96gPAwJ/?ref=app
25th May 2018, 2:15 PM
LukArToDo
LukArToDo - avatar
25th May 2018, 2:45 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 11
Pegasus [Back!] Thank you very much for your support and suggestion! 👍😉 I will try to submit to the lesson factory if the given example fulfills the conditions. 😊 Can you tell me do I need to pay attention to something, or need to update the content of the task! Thanks!
25th May 2018, 1:33 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 8
I'd like you to remember that you can submit lessons based on this ;)
25th May 2018, 12:36 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 7
Subject : Maths Topic : Set theory Sub topic : Subsets Implementation : Python one liner 😀😉😉 https://code.sololearn.com/coKPDizOj8Wr/?ref=app
27th May 2018, 10:38 AM
Zoetic_Zeel
Zoetic_Zeel - avatar
+ 7
https://code.sololearn.com/c9ns8W0Uc3sa/?ref=app
20th Jun 2018, 1:44 AM
Muhammad Hasan
Muhammad Hasan - avatar
+ 6
Anyways Python code: def specialNumber(N): N=str(N) if all([i in list(map(str,list(range(6)))) for i in N]): return "Special! ;^)" else: return "NOT SPECIAL!" print(specialNumber(int(input("Enter number:"))))
25th May 2018, 12:39 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 5
check out mine = https://code.sololearn.com/c6ztHlzHNPKR/?ref=app And thanks for the assignment
2nd Jun 2018, 5:11 AM
Salman
Salman - avatar
7th Jul 2018, 9:11 AM
Jain Rishav Amit
Jain Rishav Amit - avatar
+ 4
https://code.sololearn.com/wDsTmjnwnxz8/?ref=app
25th May 2018, 8:11 PM
Johann
Johann - avatar
25th May 2018, 9:25 PM
hinanawi
hinanawi - avatar
+ 4
Danijel Ivanović I'm a newbie in Kotlin. Hope this works fine. https://code.sololearn.com/cB5iIabpUooC/?ref=app
20th Jun 2018, 6:13 AM
Salman
Salman - avatar
+ 1
Hint: use %
25th May 2018, 11:40 AM
BlazingMagpie
BlazingMagpie - avatar
14th Jun 2018, 1:28 AM
Flash