[ ASSIGNMENT: ] Special Number | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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
20 Respostas
+ 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
My try in Ruby šŸ‘‡[1liner] https://code.sololearn.com/cS5DdB6lA849/?ref=app
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