Contact: aviboots(AT)netvision.net.il
39,900 questions
51,831 answers
573 users
lst = [3, 336, 3908899, 3126, 377] result = len(set(sub[0] for sub in map(str, lst))) == 1 print(result) ''' run: True '''
lst = [3, 336, 3908899, 3126, 4377] result = all(str(i)[0] == str(lst[0])[0] for i in lst) print(result) ''' run: False '''