Your start-up's BA has told marketing that your website has a large audience in Scandinavia and surrounding countries. Marketing thinks it would be great to welcome visitors to the site in their own language. Luckily you already use an API that detects the user's location, so this is an easy win. 

### The Task
- Think of a way to store the languages as a database (eg an object). The languages are listed below so you can copy and paste!
- Write a 'welcome' function that takes a parameter 'language' (always a string), and returns a greeting - if you have it in your database. It should default to English if the language is not in the database, or in the event of an invalid input.

### The Database

```python
'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'
```
``` java
english: "Welcome",
czech: "Vitejte",
danish: "Velkomst",
dutch: "Welkom",
estonian: "Tere tulemast",
finnish: "Tervetuloa",
flemish: "Welgekomen",
french: "Bienvenue",
german: "Willkommen",
irish: "Failte",
italian: "Benvenuto",
latvian: "Gaidits",
lithuanian: "Laukiamas",
polish: "Witamy",
spanish: "Bienvenido",
swedish: "Valkommen",
welsh: "Croeso"
```

Possible invalid inputs include:
~~~~
IP_ADDRESS_INVALID - not a valid ipv4 or ipv6 ip address
IP_ADDRESS_NOT_FOUND - ip address not in the database
IP_ADDRESS_REQUIRED - no ip address was supplied
~~~~

Difficulty: introductory

Starter code:

def greet(language):
	

Solutions:
def greet(language):
    return {
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'english': 'Welcome',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }.get(language, 'Welcome')

db = {
'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}

def greet(language):
    return db.get(language, "Welcome")

welcome_message = {
    'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso',
}

def greet(language):
    return welcome_message.get(language, welcome_message['english'])

def greet(language):
  if language=='english':
    return('Welcome')
  elif language=='czech':
    return('Vitejte')
  elif language=='danish':
    return('Velkomst')
  elif language=='dutch':
    return ('Welkom')
  elif language=='estonian':
    return('Tere tulemast')
  elif language=='finnish':
    return('Tervetuloa')
  elif language=='flemish':
    return('Welgekomen')
  elif language=='french':
    return('Bienvenue')
  elif language=='german':
    return('Willkommen')
  elif language=='irish':
    return('Failte')
  elif language=='italian':
    return('Benvenuto')
  elif language=='latvian':
    return ('Gaidits')
  elif language=='lithuanian':
    return ('Laukiamas')
  elif language=='polish':
    return ('Witamy')
  elif language=='spanish':
    return('Bienvenido')
  elif language=='swedish':
    return('Valkommen')
  elif language=='welsh':
    return('Croeso')
  else:
    return('Welcome')

def greet(language):
    #your code here
    dict = {'english': 'Welcome',
            'czech': 'Vitejte',
            'danish': 'Velkomst',
            'dutch': 'Welkom',
            'estonian': 'Tere tulemast',
            'finnish': 'Tervetuloa',
            'flemish': 'Welgekomen',
            'french': 'Bienvenue',
            'german': 'Willkommen',
            'irish': 'Failte',
            'italian': 'Benvenuto',
            'latvian': 'Gaidits',
            'lithuanian': 'Laukiamas',
            'polish': 'Witamy',
            'spanish': 'Bienvenido',
            'swedish': 'Valkommen',
            'welsh': 'Croeso'}

    if language in dict.keys():
        return (dict[language])
    else:
        return ('Welcome')

def greet(language):
    # store the data in a dictionary variable
    mylist = {'english': 'Welcome','czech': 'Vitejte','danish': 'Velkomst','dutch': 'Welkom','estonian': 'Tere tulemast','finnish': 'Tervetuloa','flemish': 'Welgekomen','french': 'Bienvenue','german': 'Willkommen','irish': 'Failte','italian': 'Benvenuto','latvian': 'Gaidits','lithuanian': 'Laukiamas','polish': 'Witamy','spanish': 'Bienvenido','swedish': 'Valkommen','welsh': 'Croeso'}
    # check if the input matches the key in myList
    if language in mylist:
        # if it matches print the value of the match
        return mylist[language]
    else:
        # if does not match just return English Value "Welcome" as the default
        return mylist['english']


def greet(language):
  d={'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
  'welsh': 'Croeso'}
  try:
    return d[language]
  except:
    return 'Welcome'

def greet(language):
    db = {'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}
    return db[language] if language in db else 'Welcome'

def greet(language):
    #your code here
    languages = {'english': 'Welcome','czech': 'Vitejte','danish': 'Velkomst','dutch': 'Welkom','estonian': 'Tere tulemast','finnish': 'Tervetuloa','flemish': 'Welgekomen','french': 'Bienvenue','german': 'Willkommen','irish': 'Failte','italian': 'Benvenuto','latvian': 'Gaidits','lithuanian': 'Laukiamas','polish': 'Witamy','spanish': 'Bienvenido','swedish': 'Valkommen','welsh': 'Croeso'}
    if language in languages.keys():
        return languages[language] 
    else:
        return languages['english']

def greet(language):
    data = {'english': 'Welcome',
            'czech': 'Vitejte',
            'danish': 'Velkomst',
            'dutch': 'Welkom',
            'estonian': 'Tere tulemast',
            'finnish': 'Tervetuloa',
            'flemish': 'Welgekomen',
            'french': 'Bienvenue',
            'german': 'Willkommen',
            'irish': 'Failte',
            'italian': 'Benvenuto',
            'latvian': 'Gaidits',
            'lithuanian': 'Laukiamas',
            'polish': 'Witamy',
            'spanish': 'Bienvenido',
            'swedish': 'Valkommen',
            'welsh': 'Croeso'
            }
    return data[language] if language in data else 'Welcome'

asd ={
'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}

def greet(language):
    return asd.get(language, "Welcome")
     
    


def greet(lang):
    return {'english': 'Welcome', 'czech': 'Vitejte', 'danish': 'Velkomst',
            'dutch': 'Welkom', 'estonian': 'Tere tulemast', 'finnish': 'Tervetuloa',
            'flemish': 'Welgekomen', 'french': 'Bienvenue', 'german': 'Willkommen',
            'irish': 'Failte', 'italian': 'Benvenuto', 'latvian': 'Gaidits',
            'lithuanian': 'Laukiamas', 'polish': 'Witamy', 'spanish': 'Bienvenido', 
            'swedish': 'Valkommen','welsh': 'Croeso'}.get(lang, "Welcome")

def greet(language):
    print(language)
    B={'english': 'Welcome', 'czech': 'Vitejte', 'danish': 'Velkomst', 'dutch': 'Welkom', 'estonian': 'Tere tulemast', 'finnish': 'Tervetuloa', 'flemish': 'Welgekomen', 'french': 'Bienvenue', 'german': 'Willkommen', 'irish': 'Failte', 'italian': 'Benvenuto', 'latvian': 'Gaidits', 'lithuanian': 'Laukiamas', 'polish': 'Witamy', 'spanish': 'Bienvenido', 'swedish': 'Valkommen', 'welsh': 'Croeso'}
    if language in B:
      x=B[language]
      print(x)
      return x
    else:
      return "Welcome"
  
   # return ("welcome")


def greet(language):
    database = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }

    for k, v in database.items():
        if k == language:
            return v

    return "Welcome"

def greet(language):
    greetings_dict = {
    'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'
    }
    if language not in list(greetings_dict.keys()):
        return 'Welcome'
    else:
        return greetings_dict[language]
    #your code here


db = {
'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}

def greet(language):
    #your code here
    if language in db.keys():
        return(db[language])
    else:
        language = 'english'
        return(db[language])

def greet(language):
    a={'czech': 'Vitejte', 'danish': 'Velkomst', 'dutch': 'Welkom', 'estonian': 'Tere tulemast', 'finnish': 'Tervetuloa', 'flemish': 'Welgekomen', 'french': 'Bienvenue', 'german': 'Willkommen', 'irish': 'Failte', 'italian': 'Benvenuto', 'latvian': 'Gaidits', 'lithuanian': 'Laukiamas', 'polish': 'Witamy', 'spanish': 'Bienvenido', 'swedish': 'Valkommen', 'welsh': 'Croeso'}
    try:
        return a[language] 
    except:
        return 'Welcome'

def greet(language):
    texts = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    if language in texts.keys():
        return texts[language]
    else:
        return texts["english"]

welcome = {
'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'
}

def greet(language):
    return welcome.get(language, 'Welcome')

def greet(language):
    return {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }.get(language, 'Welcome')

def greet(l):
    dict = {'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'}
    try:
        return dict[l]
    except:
        return 'Welcome'

def greet(language):
    try:
        d = {   'english': 'Welcome',
                'czech': 'Vitejte',
                'danish': 'Velkomst',
                'dutch': 'Welkom',
                'estonian': 'Tere tulemast',
                'finnish': 'Tervetuloa',
                'flemish': 'Welgekomen',
                'french': 'Bienvenue',
                'german': 'Willkommen',
                'irish': 'Failte',
                'italian': 'Benvenuto',
                'latvian': 'Gaidits',
                'lithuanian': 'Laukiamas',
                'polish': 'Witamy',
                'spanish': 'Bienvenido',
                'swedish': 'Valkommen',
                'welsh': 'Croeso'
              }
        return d[language]
    except:
        return 'Welcome'

def greet(language: str) -> str:
    """
    Get a greeting - if you have it in your database.
    It should default to English if the language is not in the database.
    """

    welcome_msg = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    return welcome_msg.get(language, welcome_msg["english"])

def greet(language):
    return {'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'
    }.get(str(language).lower(), "Welcome")




country_greet = {'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}

def greet(language):
    #your code here
    try:
        return country_greet[language]
    except:
        return "Welcome"

def greet(language):
    db = {'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'}
    return db[language] if language in db else db["english"]

DICT = {
    'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'
}

greet = lambda language: DICT.get(language, 'Welcome')

def greet(language):
    k = {'english': 'Welcome', 'czech': 'Vitejte', 'danish': 'Velkomst', 'dutch': 'Welkom', 'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa', 'flemish': 'Welgekomen', 'french': 'Bienvenue', 'german': 'Willkommen',
    'irish': 'Failte', 'italian': 'Benvenuto', 'latvian': 'Gaidits', 'lithuanian': 'Laukiamas',
    'polish': 'Witamy', 'spanish': 'Bienvenido', 'swedish': 'Valkommen', 'welsh': 'Croeso'}
    if k.get(language) == None:
        return k.get('english')
    else:
        return k.get(language)
    #your code here


def greet(language):
    if language == 'english':
        return ('Welcome')
    elif language == 'czech':
        return ('Vitejte')
    elif language == 'danish':
        return ('Velkomst')
    elif language == 'dutch':
        return ('Welkom')
    elif language == 'estonian':
        return ('Tere tulemast')
    elif language == 'finnish':
        return ('Tervetuloa')
    elif language == 'fllemish':
        return ('Welgekomen')
    elif language == 'french':
        return ('Bienvenue')
    elif language == 'german':
        return ('Willkommen')
    elif language == 'italian':
        return ('Benvenuto')
    elif language == 'latvian':
        return ('Gaidits')
    elif language == 'lithuanian':
        return ('Laukiamas')
    elif language == 'polish':
        return ('Witamy')
    elif language == 'spanish':
        return ('Bienvenido')
    elif language == 'swedish':
        return ('Valkommen')
    elif language == 'welsh':
        return ('Croeso')
    else:
        return ('Welcome')

lang = {'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}

def greet(language):
    if language in lang.keys():
        return lang[language]
    else:
        return 'Welcome'

GREETINGS = {
    'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'
}


def greet(language):
    return GREETINGS.get(language, GREETINGS['english'])

languageDb = {'english': 'Welcome',
             'czech': 'Vitejte',
             'danish': 'Velkomst',
             'dutch': 'Welkom',
             'estonian': 'Tere tulemast',
             'finnish': 'Tervetuloa',
             'flemish': 'Welgekomen',
             'french': 'Bienvenue',
             'german': 'Willkommen',
             'irish': 'Failte',
             'italian': 'Benvenuto',
             'latvian': 'Gaidits',
             'lithuanian': 'Laukiamas',
             'polish': 'Witamy',
             'spanish': 'Bienvenido',
             'swedish': 'Valkommen',
             'welsh': 'Croeso'}


def greet(language):
    return languageDb[language] if language in languageDb else languageDb['english']

dct = {'english': 'Welcome', 'czech': 'Vitejte', 'danish': 'Velkomst',
       'dutch': 'Welkom', 'estonian': 'Tere tulemast', 'finnish': 'Tervetuloa',
       'flemish': 'Welgekomen', 'french': 'Bienvenue', 'german': 'Willkommen',
       'irish': 'Failte', 'italian': 'Benvenuto', 'latvian': 'Gaidits',
       'lithuanian': 'Laukiamas', 'polish': 'Witamy', 'spanish': 'Bienvenido',
       'swedish': 'Valkommen', 'welsh': 'Croeso'}

def greet(language):
    return dct.get(language, 'Welcome')

def greet(language):
    
    dict_lang= {'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'
    }
    dict_lang.setdefault(language,'Welcome')
    return dict_lang[language]

def greet(language='Welcome'):
    
    while 0==0:
        if isinstance(language,int):
            return 'Welcome'
        else:
             return {
        'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso',
    'IP_ADDRESS_INVALID':'Welcome',
    'IP_ADDRESS_NOT_FOUND':'Welcome',
    'IP_ADDRESS_REQUIRED':'Welcome'}.get(language) if language else 'Welcome'

def greet(language):
    database = {'english': 'Welcome',
               'czech': 'Vitejte',
               'danish': 'Velkomst',
               'dutch': 'Welkom',
               'estonian': 'Tere tulemast',
               'finnish': 'Tervetuloa',
               'flemish': 'Welgekomen',
               'french': 'Bienvenue',
               'german': 'Willkommen',
               'irish': 'Failte',
               'italian': 'Benvenuto',
               'latvian': 'Gaidits',
               'lithuanian': 'Laukiamas',
               'polish': 'Witamy',
               'spanish': 'Bienvenido',
               'swedish': 'Valkommen',
               'welsh': 'Croeso'}
    language = str(language)
    language = language.lower()
    if language in database:
        return database.get(language)
    else:
        return database.get("english")

def greet(lang):
    db = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'        
    }
    return db.get(lang, 'Welcome')

def greet(language):
    """ 
    This function returns a greeting eturns a greeting - if you have it in your database. 
    It should default to English if the language is not in the database, or in the event of an invalid input.
    """
    greet_language = {'english': 'Welcome',
                      'czech': 'Vitejte',
                      'danish': 'Velkomst',
                      'dutch': 'Welkom',
                      'estonian': 'Tere tulemast',
                      'finnish': 'Tervetuloa',
                      'flemish': 'Welgekomen',
                      'french': 'Bienvenue',
                      'german': 'Willkommen',
                      'irish': 'Failte',
                      'italian': 'Benvenuto',
                      'latvian': 'Gaidits',
                      'lithuanian': 'Laukiamas',
                      'polish': 'Witamy',
                      'spanish': 'Bienvenido',
                      'swedish': 'Valkommen',
                      'welsh': 'Croeso'}
    for key, val in greet_language.items():
        if key == language:
            return val
    return 'Welcome'

def greet(language):
    
    my_data_base = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'}
    
    if language in list(my_data_base.keys()):
        return my_data_base[language]
    else:
        return "Welcome"
    
    #your code here


def greet(language):
    l = {'english': 'Welcome','czech': 'Vitejte','danish': 'Velkomst','dutch': 'Welkom','estonian': 'Tere tulemast','finnish': 'Tervetuloa','flemish': 'Welgekomen','french': 'Bienvenue','german': 'Willkommen','irish': 'Failte','italian': 'Benvenuto','latvian': 'Gaidits','lithuanian': 'Laukiamas','polish': 'Witamy','spanish': 'Bienvenido','swedish': 'Valkommen','welsh': 'Croeso'} 
    if language not in l:
        return 'Welcome'
    return l[language]
        


def greet(language):
    lng = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    if str(language) in lng:
        return lng.get(language.lower())
    else:
        return "Welcome"

def greet(language):
        if language in x.keys():
            i=language
            return x[i]
        else:
            return "Welcome"
        
x={      
    'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue', 
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'
    }

def greet(language = 'english'):
    #your code here
    
    dict_ = {'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'}

    return dict_[language] if language in dict_ else dict_['english']


def greet(language):

    jon = {'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'}
    
    if language in jon:
        return jon[language]
    else:
        return "Welcome"
    #your code here


def greet(language):
    d1 = {
        '':'Welcome',
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'    
    }
    if not d1.get(language):
        return 'Welcome'
    else: 
        return d1[language]


def greet(language):
    dc = {'english': 'Welcome',
            'czech': 'Vitejte',
            'danish': 'Velkomst',
            'dutch': 'Welkom',
            'estonian': 'Tere tulemast',
            'finnish': 'Tervetuloa',
            'flemish': 'Welgekomen',
            'french': 'Bienvenue',
            'german': 'Willkommen',
            'irish': 'Failte',
            'italian': 'Benvenuto',
            'latvian': 'Gaidits',
            'lithuanian': 'Laukiamas',
            'polish': 'Witamy',
            'spanish': 'Bienvenido',
            'swedish': 'Valkommen',
            'welsh': 'Croeso'}
    return dc.pop(language,'Welcome') 

def greet(language):
    translate = {'english': 'Welcome','czech': 'Vitejte','danish': 'Velkomst','dutch': 'Welkom','estonian': 'Tere tulemast','finnish': 'Tervetuloa','flemish': 'Welgekomen','french': 'Bienvenue','german': 'Willkommen','irish': 'Failte','italian': 'Benvenuto','latvian': 'Gaidits','lithuanian': 'Laukiamas','polish': 'Witamy','spanish': 'Bienvenido','swedish': 'Valkommen','welsh': 'Croeso'}
    return 'Welcome' if translate.get(language) == None else translate.get(language)

def greet(language):
    saludo = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
        }
    return saludo.get(language) if language in saludo.keys() else "Welcome"

def greet(language):
    language_map = {
    'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'
        }
    return language_map[language] if language in language_map else "Welcome"

def greet(language):
    welcoming_dict = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    return welcoming_dict.get(language, 'Welcome')


def greet(language):
    welcome_messages = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    return welcome_messages[language] if language in welcome_messages else "Welcome"

def greet(language):
    return {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso',
        'ip_address_invalid' : 'not a valid ipv4 or ipv6 ip address',
        'ip_address_not_found' : 'ip address not in the database',
        'ip_address_required' : 'no ip address was supplied'
    }.get(language,'Welcome')

def greet(language):
    data = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    if not language in data: return "Welcome"
    return data[language]

greeting = {'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}


def greet(language):
    if greeting.get(language) == None:
        return("Welcome")
    else: 
        return greeting.get(language)
    
    


def greet(language):
    
    l = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    
    try:
        language == l[language]
        return l.get(language)
    except KeyError:
        return 'Welcome'
    #your code here


def greet(language):
    welcome_dictionary= {'czech': 'Vitejte',
                        'danish': 'Velkomst',
                        'dutch': 'Welkom',
                        'estonian': 'Tere tulemast',
                        'finnish': 'Tervetuloa',
                        'flemish': 'Welgekomen',
                        'french': 'Bienvenue',
                        'german': 'Willkommen',
                        'irish': 'Failte',
                        'italian': 'Benvenuto',
                        'latvian': 'Gaidits',
                        'lithuanian': 'Laukiamas',
                        'polish': 'Witamy',
                        'spanish': 'Bienvenido',
                        'swedish': 'Valkommen',
                        'welsh': 'Croeso'}
    return welcome_dictionary.get(language,'Welcome')

def greet(language):
    WelcomeDict = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    return WelcomeDict.get(language, "Welcome")

def greet(language):
    dict = {'english': 'Welcome', 'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}
    
    for key in dict:
        if language == key:
            return dict[key]
    
    return 'Welcome'

GREETINGS = {'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}

def greet(language):
    try: greeting = GREETINGS[language]
    except KeyError: greeting = 'Welcome'
    return greeting

My_Data = {
'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'

}

def greet(language = 'english'):
    try:
        return My_Data[language]
    except KeyError:
        return My_Data['english']

    #your code here


def greet(language):
    lang = { 'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}
    message = lang.get(language, 'Welcome')
    return message

def greet(language):
    langdict = {
        'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}
    if language in langdict:
        return langdict[language]
    else:
        return 'Welcome'

def greet(l):
    s = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    return s.get(l,'Welcome')

def greet(language):
    lang_greet = {'english': 'Welcome',
                  'czech': 'Vitejte',
                  'danish': 'Velkomst',
                  'dutch': 'Welkom',
                  'estonian': 'Tere tulemast',
                  'finnish': 'Tervetuloa',
                  'flemish': 'Welgekomen',
                  'french': 'Bienvenue',
                  'german': 'Willkommen',
                  'irish': 'Failte',
                  'italian': 'Benvenuto',
                  'latvian': 'Gaidits',
                  'lithuanian': 'Laukiamas',
                  'polish': 'Witamy',
                  'spanish': 'Bienvenido',
                  'swedish': 'Valkommen',
                  'welsh': 'Croeso'}
    return lang_greet[language] if language in lang_greet else lang_greet['english']

def greet(language):
    dic={    'english': 'Welcome',
            'czech': 'Vitejte',
            'danish': 'Velkomst',
            'dutch': 'Welkom',
            'estonian': 'Tere tulemast',
            'finnish': 'Tervetuloa',
            'flemish': 'Welgekomen',
            'french': 'Bienvenue',
            'german': 'Willkommen',
            'irish': 'Failte',
            'italian': 'Benvenuto',
            'latvian': 'Gaidits',
            'lithuanian': 'Laukiamas',
            'polish': 'Witamy',
            'spanish': 'Bienvenido',
            'swedish': 'Valkommen',
            'welsh': 'Croeso'}
    return dic.get(language) if language in dic else 'Welcome' 

dict = {'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}

def greet(language = "Welcome"):
    return dict.get(language, "Welcome")


greet = lambda language: {'czech':'Vitejte','danish':'Velkomst','dutch': 'Welkom','estonian':'Tere tulemast','finnish':'Tervetuloa','flemish':'Welgekomen','french':'Bienvenue','german':'Willkommen','irish':'Failte','italian':'Benvenuto','latvian':'Gaidits','lithuanian':'Laukiamas','polish':'Witamy','spanish':'Bienvenido','swedish':'Valkommen','welsh':'Croeso'}.get(language, 'Welcome')

listlang = {
    'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso',
    'IP_ADDRESS_INVALID': 'Welcome',
    'IP_ADDRESS_NOT_FOUND ': 'Welcome',
    'IP_ADDRESS_REQUIRED ': 'Welcome',
    '': 'Welcome',
    2: 'Welcome'
}
    
def greet(language = 'Welcome'):
    if language in listlang:
        return(listlang[language])
    else:
        return("Welcome")


def greet(language):
    #your code here
    names={'english': 'Welcome','czech': 'Vitejte','danish': 'Velkomst','dutch': 'Welkom','estonian': 'Tere tulemast','finnish': 'Tervetuloa','flemish': 'Welgekomen','french': 'Bienvenue','german': 'Willkommen','irish': 'Failte','italian': 'Benvenuto','latvian': 'Gaidits','lithuanian': 'Laukiamas','polish': 'Witamy','spanish': 'Bienvenido','swedish': 'Valkommen','welsh': 'Croeso'}
    if language in names:
        return names[language]
    else:
        return 'Welcome'
    


D={
'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'
}

def greet(language):
    if language in D:return D[language]
    return "Welcome"

def greet(language):
    try:
        greeting = {'english': 'Welcome',
                'czech': 'Vitejte',
                'danish': 'Velkomst',
                'dutch': 'Welkom',
                'estonian': 'Tere tulemast',
                'finnish': 'Tervetuloa',
                'flemish': 'Welgekomen',
                'french': 'Bienvenue',
                'german': 'Willkommen',
                'irish': 'Failte',
                'italian': 'Benvenuto',
                'latvian': 'Gaidits',
                'lithuanian': 'Laukiamas',
                'polish': 'Witamy',
                'spanish': 'Bienvenido',
                'swedish': 'Valkommen',
                'welsh': 'Croeso'}
        return greeting[language]
    except KeyError:
        return 'Welcome'

def greet(language):
    dictionary = {'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}
    if language in dictionary:
        return dictionary.get(language)
    else:
        return dictionary.get("english")

def greet(language):
    #your code here
    if language == "dutch":
        return 'Welkom'
    elif language == "czech":
        return 'Vitejte'
    elif language == "danish":
        return 'Velkomst'
    elif language == "estonian":
        return 'Tere tulemast'
    elif language == "finnish":
        return 'Tervetuloa'
    elif language == "flemish":
        return 'Welgekomen'
    elif language == "french":
        return 'Bienvenue'
    elif language == "german":
        return 'Willkommen'
    elif language == "irish":
        return 'Failte'
    elif language == "italian":
        return 'Benvenuto'
    elif language == "latvian":
        return 'Gaidits'
    elif language == "lithuanian":
        return 'Laukiamas'
    elif language == "polish":
        return 'Witamy'
    elif language == "spanish":
        return 'Bienvenido'
    elif language == "swedish":
        return 'Valkommen'
    elif language == "welsh":
        return 'Croeso'
    else:
        return "Welcome"

def greet(language):
    greeting = {
        'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'
    }
    if language in greeting:
        return greeting[language]
        exit
    return greeting['english']

def greet(language='english'):
    myDict = {'english': 'Welcome','czech': 'Vitejte', \
        'danish': 'Velkomst','dutch': 'Welkom',\
        'estonian': 'Tere tulemast','finnish': 'Tervetuloa',\
        'flemish': 'Welgekomen','french': 'Bienvenue',\
        'german': 'Willkommen','irish': 'Failte',\
        'italian': 'Benvenuto','latvian': 'Gaidits',\
        'lithuanian': 'Laukiamas','polish': 'Witamy',\
        'spanish': 'Bienvenido','swedish': 'Valkommen',\
        'welsh': 'Croeso' }

    key_list = list(myDict.keys())
    value_list = list(myDict.values())
    try:
        return (value_list[key_list.index(language)])
    except ValueError:
        return (value_list[key_list.index('english')])

welcome = {
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'
}

def greet(language):
    return 'Welcome' if language not in welcome else welcome[language]

def greet (language):
    languages = {
        'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'
        
    }
    return (languages.get(language) or 'Welcome')
   

    #if languages.get(language) == None :
     #   return ('Welcome')
    #else:
     #   return (languages[language])


def greet(language):
    obj1 = {'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}
    
    if language not in obj1:
        return obj1['english']
    else:
        return obj1[language]

dict = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }

greet = lambda l: dict[l] if l in dict else dict['english']

def greet(language):
    welcome_dict = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    if language in welcome_dict.keys():
        return welcome_dict[language.lower()]
    else:
        return welcome_dict['english']

def greet(language):
    dictionary = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'}
    for key, value in dictionary.items():
        if language == key:
            return value
            break
    return "Welcome"

def greet(language='english'):
    data={'english': 'Welcome',
            'czech': 'Vitejte',
            'danish': 'Velkomst',
            'dutch': 'Welkom',
            'estonian': 'Tere tulemast',
            'finnish': 'Tervetuloa',
            'flemish': 'Welgekomen',
            'french': 'Bienvenue',
            'german': 'Willkommen',
            'irish': 'Failte',
            'italian': 'Benvenuto',
            'latvian': 'Gaidits',
            'lithuanian': 'Laukiamas',
            'polish': 'Witamy',
            'spanish': 'Bienvenido',
            'swedish': 'Valkommen',
            'welsh': 'Croeso'}
    return data[language] if language in data else 'Welcome'

def greet(language):
    #your code here
    db = {'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}
    if language in list(db.keys()):
        res = db[language]
        return res
    else:
        return 'Welcome'


def greet(language):
    if language == 'english':
        return "Welcome"
    if language == 'czech':
        return "Vitejte"
    if language == 'danish':
        return "Velkomst"
    if language == 'dutch':
        return "Welkom"
    if language == 'estonian':
        return "Tere tulemast"
    if language == 'flemish':
        return "Welgekomen"
    if language == 'finnish':
        return "Tervetuloa"
    if language == 'french':
        return "Bienvenue"
    if language == 'german':
        return "Willkommen"
    if language == 'irish':
        return "Failte"
    if language == 'italian':
        return "Benvenuto"
    if language == 'latvian':
        return "Gaidits"
    if language == 'lithuanian':
        return "Laukiamas"
    if language == 'polish':
        return "Witamy"
    if language == 'spanish':
        return "Bienvenido"
    if language == 'swedish':
        return "Valkommen"
    if language == 'welsh':
        return "Croeso"
    else:
        return "Welcome"

def greet(language):
    try:
        dict={'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'        
        }
        return(dict[language])
    except KeyError:
        return("Welcome")

LANGUAGE = {
    'english': 'Welcome', 'czech': 'Vitejte', 'danish': 'Velkomst', 'dutch': 'Welkom', 'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa', 'flemish': 'Welgekomen', 'french': 'Bienvenue', 'german': 'Willkommen',
    'irish': 'Failte', 'italian': 'Benvenuto', 'latvian': 'Gaidits', 'lithuanian': 'Laukiamas',
    'polish': 'Witamy', 'spanish': 'Bienvenido', 'swedish': 'Valkommen', 'welsh': 'Croeso'
}

def greet(language):
    return LANGUAGE.get(language, 'Welcome')

def greet(language):
    dict = {'english': 'Welcome', 
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}
    if language not in dict:
        return dict["english"]
    else:
        return dict[language]
    #your code here


def greet(language):
    greet_dict = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    try:
        return greet_dict[language]
    except:
        return greet_dict['english']

def greet(language):
    languages = \
    {'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'}
    print(language,languages.get(language))
    if languages.get(language) in languages.values():    
        return languages.get(language)
    else:
        return "Welcome"

def greet(language):
    dict = { 'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}
    if language not in dict:
        return "Welcome"
    for k,v in dict.items():
        if k==language:
            return v

def greet(language):
    """greets the user on his mother language"""
    language_dict = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    return language_dict[language] if language in language_dict else "Welcome"

def greet(language):
    accessibility = {'english': 'Welcome',
                     'czech': 'Vitejte',
                     'danish': 'Velkomst',
                     'dutch': 'Welkom',
                     'estonian': 'Tere tulemast',
                     'finnish': 'Tervetuloa',
                     'flemish': 'Welgekomen',
                     'french': 'Bienvenue',
                     'german': 'Willkommen',
                     'irish': 'Failte',
                     'italian': 'Benvenuto',
                     'latvian': 'Gaidits',
                     'lithuanian': 'Laukiamas',
                     'polish': 'Witamy',
                     'spanish': 'Bienvenido',
                     'swedish': 'Valkommen',
                     'welsh': 'Croeso'}
    return accessibility[language] if language in accessibility else 'Welcome'

langs = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
}

greet = lambda language: langs[language] if language in langs else 'Welcome'

def greet(language):
    database = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
    }
    try:
        return database.get(language.lower(), 'Welcome')
    except:
        return 'Welcome'

def greet(language):
    d = {'english': 'Welcome',
         'czech': 'Vitejte',
         'danish': 'Velkomst',
         'dutch': 'Welkom',
         'estonian': 'Tere tulemast',
         'finnish': 'Tervetuloa',
         'flemish': 'Welgekomen',
         'french': 'Bienvenue',
         'german': 'Willkommen',
         'irish': 'Failte',
         'italian': 'Benvenuto',
         'latvian': 'Gaidits',
         'lithuanian': 'Laukiamas',
         'polish': 'Witamy',
         'spanish': 'Bienvenido',
         'swedish': 'Valkommen',
         'welsh': 'Croeso'}

    for k, v in d.items():
        if language == k:
            return v
    return "Welcome"

DATABASE = {
    'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso',
}


def greet(language):
    try:
        return DATABASE[language]
    except:
        return "Welcome"

def greet(language):
    mydict = {'english': 'Welcome',
    'czech': 'Vitejte',
    'danish': 'Velkomst',
    'dutch': 'Welkom',
    'estonian': 'Tere tulemast',
    'finnish': 'Tervetuloa',
    'flemish': 'Welgekomen',
    'french': 'Bienvenue',
    'german': 'Willkommen',
    'irish': 'Failte',
    'italian': 'Benvenuto',
    'latvian': 'Gaidits',
    'lithuanian': 'Laukiamas',
    'polish': 'Witamy',
    'spanish': 'Bienvenido',
    'swedish': 'Valkommen',
    'welsh': 'Croeso'}
    if language not in mydict.keys():
        return "Welcome"
    else:
        return mydict.get(language)

def greet(language):
    '''Returns welcome in language depending on origin of person'''
    languages = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso'
        }
    return languages[language] if language in list(languages.keys()) else 'Welcome'

print((greet("czech")))


db = {'english': 'Welcome',
'czech': 'Vitejte',
'danish': 'Velkomst',
'dutch': 'Welkom',
'estonian': 'Tere tulemast',
'finnish': 'Tervetuloa',
'flemish': 'Welgekomen',
'french': 'Bienvenue',
'german': 'Willkommen',
'irish': 'Failte',
'italian': 'Benvenuto',
'latvian': 'Gaidits',
'lithuanian': 'Laukiamas',
'polish': 'Witamy',
'spanish': 'Bienvenido',
'swedish': 'Valkommen',
'welsh': 'Croeso'}

def greet(language='english'):
    try: 
        return db[language]
    except: 
        return db['english']


def greet(language):
    x = {
        'english': 'Welcome',
        'czech': 'Vitejte',
        'danish': 'Velkomst',
        'dutch': 'Welkom',
        'estonian': 'Tere tulemast',
        'finnish': 'Tervetuloa',
        'flemish': 'Welgekomen',
        'french': 'Bienvenue',
        'german': 'Willkommen',
        'irish': 'Failte',
        'italian': 'Benvenuto',
        'latvian': 'Gaidits',
        'lithuanian': 'Laukiamas',
        'polish': 'Witamy',
        'spanish': 'Bienvenido',
        'swedish': 'Valkommen',
        'welsh': 'Croeso' 
    }
    
    if language not in x:
        return "Welcome"
    else:
        for i in x:
            if i == language:
                return x[i]