Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

myfirstcontribution #261

Merged
merged 1 commit into from
Jun 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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))