From 8ee4e40d36144435b2d47df960a703c5756678ec Mon Sep 17 00:00:00 2001 From: Enishu Date: Mon, 18 Nov 2024 10:39:21 +0100 Subject: [PATCH] Update main.py --- "P1/P1C6/\303\251nonc\303\251/main.py" | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git "a/P1/P1C6/\303\251nonc\303\251/main.py" "b/P1/P1C6/\303\251nonc\303\251/main.py" index f1de480b..62123a47 100644 --- "a/P1/P1C6/\303\251nonc\303\251/main.py" +++ "b/P1/P1C6/\303\251nonc\303\251/main.py" @@ -1 +1,11 @@ -# Écrivez votre code ici ! \ No newline at end of file +# Écrivez votre code ici ! +fruits = ['pomme', 'banane' , 'orange'] +fruits.append('kiwi') +print(fruits) +del (fruits[2]) +print(fruits) +fruits[1] = "ananas" +print(fruits) +print("La liste contient", len(fruits), "fruits.") +fruits.sort() +print(fruits)