mirror of
https://github.com/arthur-pbty/nsi.git
synced 2026-06-03 15:07:31 +02:00
exercise 1.4 update
This commit is contained in:
@@ -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])
|
||||
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])
|
||||
Reference in New Issue
Block a user