diff --git a/src/ex3.py b/src/ex3.py index 74592df6..be0e3a34 100644 --- a/src/ex3.py +++ b/src/ex3.py @@ -41,3 +41,21 @@ # # return 0; # } + +textInput = input("Enter a famous name+surname, ex. BarackObama: ") + +match textInput: + case "BarackObama": + print("44th president of the United States") + case "SandroPertini": + print("Former President of the Italian Republic") + case "NelsonMandela": + print("Former President of South Africa") + case "MahatmaGandhi": + print("Bapu") + case "DonaldKnuth": + print("Creator of LaTeX") + case "DennisRitchie": + print("Creator of C") + case _: + print("Invalid input! Please enter a good name!")