Maximum⚓︎

Écrire une fonction maximum :

  • prenant en paramètre une liste non vide de nombres : nombres
  • renvoyant le plus grand élément de cette liste.

Chacun des nombres utilisés est de type int ou float.

Contraintes

On interdit ici d'utiliser max, ainsi que sort ou sorted.

Exemples
>>> maximum([98, 12, 104, 23, 131, 9])
131
>>> maximum([-27, 24, -3, 15])
24
###(Dés-)Active le code après la ligne # Tests (insensible à la casse)
(Ctrl+I)
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
.128013lS]et-d5f18umaèg,_/R=in 6)yàqPhcL\[(bsx.p;r4j'C0"ovw73Ok:é 2I030b08090i0q050G0#0A050i0G0G0p0R090q0J0R020s030G0g0h0h0i0L0v02060S050g0`0S0r0#000i0h0J0K0#0o08140L0x0g080G030n111315170 0J02031C1v1F0n1C0 0b0q0T0/0;0?0^0z0q0k0z051T0z090}030*0F05081O0=0@0R1S1U1W1U091$1'1!090L1D090z0/1a0G0J0i0r0^0$0R1)1Q0R0d0,080r1i081!1 21261+291'2c0h2e02040#0y0L0S0J0S0G0q1d1f0(1}0L0L080A2z1v2g0r1D0n1{2L1^1`1_1#0b2i0^1W0r2b2w1!1L1N0:1*2V0q2X0r0S2#1!0J2E1D2J2L2=10201f2%272+0L14050}0e2I2_0~2^2h2{1+2}2 0}0$3321352J2U0R3a0i30020W3e2K0 3h380^3k3m0M3p3g2_3i3v0}0c3y3r3A3t3j0S2~3l0}0t3y1G2:1v2#2O0b1`2T3I0A2,2o0'1M1D2/082;343P3Z0(3*371P1+0Y0}0(0d3y0#362`3;3u0d0}140H0q0h123P3s3~0R0|020E473H490r0}2+0h0F2E1u1w3+482'4a0}0u0Z3F0#4x3{4q2|410i433`3|3i0S0}0p4F4A394i0S4k4m4e3:4r4b0D4S3}4r0h0q0}0Q4X3i4b074w4y4G3I3?020d3K4L4f4r4h020T3l080g0L4?4T270S0U0}2)504Y4B024j4l1t4'3I4b4v4o3f0s4y5l4z4@274/0q3_5i2K5n514N4`4|4~574H0}000k090K5B3I4_420q5e495g4+5m5m4-4g4C4E5t025v581+4I024K5X5Z3B0}4{1'5A5X5k4,4M0^4/2E094~0r5I5U025L3F1v3-3)3Q630n3T1v093V682R2M0i1%653T1B3/5!0^2E0h0m0d0i0Y080m0z0W0}1n1p1r1t0#5h2@1I351C0%050#0G0O0i0k2y0#0b0O0g2X0#2E0A0z080L6W1(2B5L450h2i0q6z0I0#0B0i0#1W0G091(0!0*0r090#2+0r0a0T0q0(0l0#1e0#2)2y0q3l0q0G1(0;0#4{0L796f3{625~4D5M0n7l0#0i0T2F6:6/3(4!0j2E7f5z0L6,0P087e0J6Y2n6{2B0k15210`0L0#6z6:1(6%120#1t6{0F0q2b0#6S1(5,4}7R2B7e6;6?0I1G6F020y157Y0H1o0J1'737s7u7.7b6?7k3!3i1-1V1X1Z6j4(0}4W5X5T4r5$0a5N4Z4#020V0f8l274b0l5|8i0}8k8g5=0R4!0}0V8r1+8t8v528x8F0^8C020e3E8z5o8G0}8u5(8h8J028y2@8A8N3o8R5w0^4)3P7p3!02731'0#7W6(7Z0 7l0a8'7l6,060q741f770`7a7c853.5 8-3.7r7t0A0#0Q7 053K0.0,6|1(7c0L6/0N1i0+0.0b0!200?0!7Y090s7e4;0r2G0q752E0r7t2D6/037l4%9a3)730A1(1r907Z0#6p0g0H7;6E6i0X1f7I1c0#0!7N1'2n6`7'0`6;6Y7v7B5-7R9O863I881/1Y2f8S0^8j8L3j0F0}0d9i0i09a84b4d8(6k0R0G2402001r0S5G2)0dap0gar5Haj8d020u8,7q9W2C4m2v0r0b0s0w5)3I152y0z146?0H0}0C0E0a0Cat090v0CaC5(0)7S0g909o6/0b1e9e9v9x0G0!1(aM7H6m0q7z7)7C6U087N0L9v087E7G0i0s7I2~a)9.4|9;7L1(0k0!2E7R1'0.7/6A700(0.7%0i0b7K6_6{7T8;8?0s6Q7(6:837)711(9Y8X1+aP1{aS08aU02aWaYa!a$a'2=9%1J1E7@7_3Z6`2E732x916J0+bz1s7U0.7*4~9u1(9~3.5b4R9R5Y0G1e6{090S1c1t0s110Jbk7$4~6AaMbFb@7,1e0ra^0#0E207RbR7|8;0Q0#2v4~6P6A2+6?0G0u73759+9B93799^9}7l997q809e9U1;a 9|8=772 b67=0 660)0+0-02.