Posts by Suel • 45 points
3 posts
-
0
votes0
answers92
viewsQ: Loop For with Zip(), how to select the amount of records?
I have this code that works normally def pdd(number, entrada): for i, j, k, l, m in zip(entrada[:-1], entrada[1:], entrada[2:], entrada[3:], entrada[4:]): if number in i: print([j, k, l, m])…
-
2
votes2
answers61
viewsQ: Pass X function as parameter to Y function, but only define X parameter within Y
Does anyone know how to make the code below work? Or some alternative that works, but follows the principle. def f_numbers(number='no'): if number == 'no': return 'Você não definiu um número' else:…
-
2
votes1
answer216
viewsQ: Single lists with at least 2 difference elements
Considering the numbers: 01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25 How do I generate lists of 15 items (numbers cited above), and they need to have at least 2 items…