0
How to print only if number is in number
4 Respostas
+ 5
Thile Dorje Lama ,
the complete task is very vague, so can you please give a clear and complete task description?
+ 4
So you mean like this?
def mycall(number):
if number[0] in [ 3, 4, 8 ]:
print('mike is calling')
else:
print('unknown calling')
0
def mycall(num):
if num[0] in [356]:
Printf ('Tom is calling')
else:
Printf ('unknown is calling')
đźđșđź