Contact: aviboots(AT)netvision.net.il
41,397 questions
53,943 answers
573 users
tpl = (30, 40,50, 60, 7) number = 2 tpl = tuple(item / number for item in tpl) print(tpl) ''' run: (15.0, 20.0, 25.0, 30.0, 3.5) '''
tpl = (30, 40,50, 60, 7) number = 2 tpl = tuple(item // number for item in tpl) print(tpl) ''' run: (15, 20, 25, 30, 3) '''