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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!