Contient doublons

Écrire une fonction a_doublon qui prend en paramètre une liste triée de nombres et renvoie True si la liste contient au moins deux nombres identiques, False sinon.

Exemples

Python
>>> a_doublon([])
False
>>> a_doublon([1])
False
>>> a_doublon([1, 2, 4, 6, 6])
True
>>> a_doublon([2, 5, 7, 7, 7, 9])
True
>>> a_doublon([0, 2, 3])
False

Attention

Il est interdit d'utiliser count

Compléter le code ci-dessous

###(Dés-)Active le code après la ligne # Tests (insensible à la casse)
(Ctrl+I)
Entrer ou sortir du mode "deux colonnes"
(Alt+: ; Ctrl pour inverser les colonnes)
Entrer ou sortir du mode "plein écran"
(Esc)
Tronquer ou non le feedback dans les terminaux (sortie standard & stacktrace / relancer le code pour appliquer)
Si activé, le texte copié dans le terminal est joint sur une seule ligne avant d'être copié dans le presse-papier
Évaluations restantes : 5/5

.128013rbdakwtT3lfh[S=2y]+4g_p(ni1F)o/5cesm-u P:v050d0I0h0e0A0k0J0N0H0k0e0J0J0p010h0A0x010406050J0M0K0K0e0b0r040o0E0k0M0+0E0z050F0=0@0_0{0:0x04051b141e0F1b0:0d0A0Q0Z0#0%0)0#0z0v0M0e0v0I0L0x0r0h0m120N0m0A0v0m0k1G0m0h0.050U0c0k0I1n0$0(011F1H1J1H0h1P1R1N0h0b1c1B0Z0~0J0x0e0z0)0q011T1p010l0W0I0z0e0K0I1N1/1;1_1V1|1R1 210.0a0N0O0b0E0x0E0J0A110z0N0S1-0b0b0I0H2m14240z1c0F1B2z1)1+1*1O0d261q0A0z1~2j1N1k1m0!1U2J2L0z0E2P1N0x2s1c2x2z2$0;1:2n2R1`2V0b0^0k1N0e1E2s0l0)030w0w0H2W0I1J2U0E0L0B340.0B140e2%2*0/2)252,1V2.2:2=2@0I2_012{2}2 312M340L1@040q393b1;3d2x2I013i0e2;1c2?0m2^2`2|2~0S3s2V3u0j0.0j3z2w3c0:3D3g0)3G3I053K3M3o3O3r2K3t350u0.0u3X153Z3e2+1o3h0E2/3H3k3L3m3N3q3Q3:3S350G0.0G3_2(1h2!142P2C0d1+2H3$013P221c4k1d4i4g2(4r2#2*0N0A0d0)2|2x3u0B3k4D4F47304933354J0N2a0I4M4r3R4Q362z3a3|3E0f0.0S0l3Y3B4%4p0g0.0N4-2y4/3~3%0l0.0e0w0d0E0M1Q124@4A3f4`010-040y554_2S3F0.0X0h5d3#585a0D0P550:3`4.3D4L014G2*3u3w3*4C4E5w4N4Y5z1^4U4W3/325H4#040N5Q4?5l5f4)040l40555S4B4p0z0.0A5Z5e1`0E4;042K5*5T2-0c0.0b1;1w5k5#5m0.5c5s4^5=3h5@04295|575f5a602(633%5h0J5j61563}6a0.0D686l5,0.0L6p3E0K0A376u4p5n5p6j5r6d4B5v5x1;3T4K5D3.485M353U4T204V5E4X4P6K5O5R6!5!691`5V0A4,6j6$6q3h6g6i6F6%1V5a0n6z585%5/6`6m040s5;5}5f0E0.0p0p726?6f666h6~1`6^7e6/6}6j5+1V75040t7h0)6w6y7k6e590.0s6C2$6E3c4%6H0w4H3=6L5K6O3;0L3?6S217J4O6P7M1N0F3a6#7X6-4(5^0T0M0b136,7l0)0f0H0.0i0b0M0I5q6u7E7G0L4c3J5C7Q5G4b5I6T7 6X816Z5R7+015V2s0h7%7)2$7Z4p7-0.0C3H0J7?6D5d0F4z1f4i0F4u2A4m142D8z0e1Q0I2z4k5r0S0U0W0J04.