Question
EX.2.1.5: Write a Conditional Code As ESCP has 6 campuses (Paris, Berlin, London, Madrid, Torino and Warsaw), and as multiculturalism is at the heart of
EX.2.1.5: Write a Conditional Code
As ESCP has 6 campuses (Paris, Berlin, London, Madrid, Torino and Warsaw), and as multiculturalism is at the heart of its vision of management Design and develop a program which asks the user to choose a language (among the 6 languages of our campuses) and which displays Hello World in the requested language.
The language will be chosen by its name in English: English, French, German, Intalian, Polish or Spanish.
Linguistic hint: Hello World - Bonjour le monde - Hallo Welt - Ciao mondo - Witaj wiecie - Hola mundo
Help
The following Python syntax may be useful:
- print("xxxxxx") will display on the screen what is between " and "
- if a is a variable, print(a) wil display on the screen the content of a
- input("yyy") displays on the screen what is between " and ", and returns a text containing what is typed by the user
- the equality operator is ==
- This is a conditional block in Python (beware: indentation is meaningful):
if Condition : instructions else : instructions
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started