From 7b6ff0ba9afa46d4dc348cf87806df629f996aa8 Mon Sep 17 00:00:00 2001 From: Tutur33 Date: Tue, 28 Nov 2023 22:59:35 +0100 Subject: [PATCH] exercise 1.4 update --- Activity_3_python/exercises_1/exercise_1_4.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Activity_3_python/exercises_1/exercise_1_4.py b/Activity_3_python/exercises_1/exercise_1_4.py index eec7295..3a8d910 100644 --- a/Activity_3_python/exercises_1/exercise_1_4.py +++ b/Activity_3_python/exercises_1/exercise_1_4.py @@ -1,4 +1,6 @@ -prenom = "Léa" -nom = "Martin" +# From the two variables prenom and nom, display the initials (e.g. LM for Léa Martin). -print(prenom[0], nom[0]) \ No newline at end of file +first_name = input("What's your first name? ").capitalize() +last_name = input("What's your last name? ").capitalize() + +print(first_name, last_name, "has pure initials", first_name[0], last_name[0]) \ No newline at end of file