How to print only if number is in number | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to print only if number is in number

https://code.sololearn.com/cu7kx5sL1HM2/?ref=app

5th Apr 2023, 6:04 AM
Thile Dorje Lama
Thile Dorje Lama - avatar
4 Answers
+ 5
Thile Dorje Lama , the complete task is very vague, so can you please give a clear and complete task description?
5th Apr 2023, 6:48 PM
Lothar
Lothar - avatar
+ 4
So you mean like this? def mycall(number): if number[0] in [ 3, 4, 8 ]: print('mike is calling') else: print('unknown calling')
5th Apr 2023, 6:48 AM
Ani Jona 🕊
Ani Jona 🕊 - avatar
5th Apr 2023, 8:02 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
0
def mycall(num): if num[0] in [356]: Printf ('Tom is calling') else: Printf ('unknown is calling') 💮🌺💮
5th Apr 2023, 11:45 AM
ASIM FARHEEN ❄️⚡⚡🤳⚡⚡❄️
ASIM FARHEEN ❄️⚡⚡🤳⚡⚡❄️ - avatar