🎓 Petit problème
Validation
Si vous pouvez rapidement résoudre ce problème,
alors vous pouvez
- lire les commentaires
- puis passer à la section suivante.
Exercice
Un parc d'attractions affiche les tarifs suivants :
- 8,50 € par enfant
- 12,00 € par adulte
Coder une fonction prix_total qui renvoie le prix total à payer, à partir du nombre nb_enfants d'enfants et du nombre nb_adultes d'adultes.
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
.128013.8364x,5/f.q!78r;nb _o=ylaepcwgu)vd*4613kRIméhtsP(S0+à2ji:050F0x0R0w0#0v0S0q0z0v0w0S0S0t010R0#0y010406050S0C0O0O0w0m0u040V0s0v0C0`0s0o0q020w0O0y0n0q0M0x140m0i0C0x0S050f111315170 0y04051C1v1F0f1C0 0F0#0E0/0;0?0^0Q0#0B0Q0v1T0Q0R0}050*0p0v0x1O0=0@011S1U1W1U0R1$1(1!0R0m1D0R0Q1*1Q010g0,0x0o1i0x010/1a0S0y0w0o0^0Z1!2a2c1~1,211(240O26040a0q0T0m0s0y0s0S0#1d1f0(280m0m0x0z2A1v2h0o1D0f1|2M1_1{1`1#0F2j0^1W0o232x1!1L1N0:1+2W0#2Y0o0s2$1!0y2F1D2K2M2@102b1f2(1 2-0m140v0}0J2J2{0~2`2i2}1,2 310}0Z352c372K2V013c0w32040K3g2L0 3j3a0^3m3o0H3r3i2{3k3x0}0e3A3t3C3v3l0s303n0}0I3H382|1P3b3M3d040k3A1G2=1v2$2P0F1{2U3K0z2.2p0%1M1D2;0x2?363!3.0(3_393U0^0L0}0(0g3!3u40010A0}0q463J480o0g0}2;0#0c0r0R0s0*0v4d3 2)010|040U4r3T4t0o0}0o0p0r230g2c0R1u1w3`474t4v0d3A4c4N2~4C4E0w0F0C0v0R1t4y3k4v0D0$3R4T1,4a040q4;4c4L3h3S3k0S0F0}014~1n0o0E0s0#1)1(0q4j0c0q4n4p570s0C0m0q0C2Y0q0!5e0m0o0P1)0w0C57150z0q0F000w1=0m0w2H0#1e4,4e4t4{4b4=0q0l0d0e0W0q0b5t5g4G4I5G4s1 5J4:4=0J0Z0d0W5Q5S2b5g4X4Z4#4K2@3I5Y1,5!5L4~013H5L4_3K4B04584R60480s0}0t654-3w4V4F4g4I5=364S5H1 68040G6b6l1,0O4h040l0h3G4@2L4;664t6n0X4R6k5^6d044D0r5/4!4$6z4:6C6m0}6p6Q6H4z1 6t330Z0h0W5~4=6S1,42042F0R5f0o6q6I3l4i0m4k3R0f3|3^3#6 0f3(1v0R3*742S2N0w1%713(1B3~6Y1,2F0O0r4H0L0x0r0Q0K0}1n1p1r1t0q4+6Q1G371C0N0v0q4H1c57230S0x5g0Y0q0w5l1c7K5h5j0F0s0z0S1_2+0B0q0j7z0 720)0+0-04.
# Tests(insensible à la casse)(Ctrl+I)
(Alt+: ; Ctrl pour inverser les colonnes)
(Esc)