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

.128013TSo4l5s_:w/+phPn[1gk2c=iF)-tfear3(d v]umby050J0E0C0F0y0f0h0K0w0f0F0h0h0x010C0y0n010406050h0N0O0O0F0G0Q040c0d0f0N0+0d0q050l0=0@0_0{0:0n04051b141e0l1b0:0J0y0L0Z0#0%0)0#0q0t0N0F0t0E0B0n0Q0C0o120K0o0y0t0o0f1G0o0C0.050U0P0f0E1n0$0(011F1H1J1H0C1P1R1N0C0G1c1B0Z0~0h0n0F0q0)0v011T1p010D0W0E0q0F0O0E1N1/1;1_1V1|1R1 210.0a0K0p0G0d0n0d0h0y110q0K0S1-0G0G0E0w2m14240q1c0l1B2z1)1+1*1O0J261q0y0q1~2j1N1k1m0!1U2J2L0q0d2P1N0n2s1c2x2z2$0;1:2n2R1`2V0G0^0f1N0F1E2s0D0)030i0i0w2W0E1J2U0d0B0s340.0s140F2%2*0/2)252,1V2.2:2=2@0E2_012{2}2 312M340B1@040v393b1;3d2x2I013i0F2;1c2?0o2^2`2|2~0S3s2V3u0H0.0H3z2w3c0:3D3g0)3G3I053K3M3o3O3r2K3t350e0.0e3X153Z3e2+1o3h0d2/3H3k3L3m3N3q3Q3:3S350g0.0g3_2(1h2!142P2C0J1+2H3$013P221c4k1d4i4g2(4r2#2*0K0y0J0)2|2x3u0s3k4D4F47304933354J0K2a0E4M4r3R4Q362z3a3|3E0u0.0S0D3Y3B4%4p0k0.0K4-2y4/3~3%0D0.0F0i0J0d0N1Q124@4A3f4`010-040I554_2S3F0.0X0C5d3#585a0A0j550:3`4.3D4L014G2*3u3w3*4C4E5w4N4Y5z1^4U4W3/325H4#040K5Q4?5l5f4)040D40555S4B4p0q0.0y5Z5e1`0d4;042K5*5T2-0P0.0G1;1w5k5#5m0.5c5s4^5=3h5@04295|575f5a602(633%5h0h5j61563}6a0.0A686l5,0.0B6p3E0O0y376u4p5n5p6j5r6d4B5v5x1;3T4K5D3.485M353U4T204V5E4X4P6K5O5R6!5!691`5V0y4,6j6$6q3h6g6i6F6%1V5a0r6z585%5/6`6m040M5;5}5f0d0.0x0x726?6f666h6~1`6^7e6/6}6j5+1V75040m7h0)6w6y7k6e590.0M6C2$6E3c4%6H0i4H3=6L5K6O3;0B3?6S217J4O6P7M1N0l3a6#7X6-4(5^0T0N0G136,7l0)0u0w0.0b0G0N0E5q6u7E7G0B4c3J5C7Q5G4b5I6T7 6X816Z5R7+015V2s0C7%7)2$7Z4p7-0.0z3H0h7?6D5d0l4z1f4i0l4u2A4m142D8z0F1Q0E2z4k5r0S0U0W0h04.