Skip to content

Commit

Permalink
myfirstcontribution
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeljneves authored and wmartins committed Jun 17, 2018
1 parent 19f1edd commit 9e884e9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@

- [Rafael Cerqueira](https://github.com/rafascerqueira)

- [Rafael Neves](https://github.com/rafaeljneves)

- [Rafael Pereira](https://github.com/12afaelPereira)

- [Renan Teixeira](https://github.com/renant)
Expand Down
30 changes: 30 additions & 0 deletions world_cup_20th.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-

# Print List of Country Host of FIFA World Cup on Century 21


world_cup_21th = {
'2002': ['South Korea', 'Japan'],
'2006': 'Germany',
'2010': 'South Africa',
'2014': 'Brazil',
'2018': 'Russia',
}


def find_country(year):
if year in world_cup_21th:
val = world_cup_21th[year]
else:
val = "NONE"

return val

if __name__ == '__main__':


# read users input
worldCupYear = raw_input("Please input FIFA World Cup year: ")

# print the output
print(find_country(worldCupYear))

0 comments on commit 9e884e9

Please sign in to comment.