Skip to content

Instantly share code, notes, and snippets.

View gatukgl's full-sized avatar
🐤

Sudarat (Gatuk) Chattanon gatukgl

🐤
View GitHub Profile
# Executions
interact("walking up")
interact("walking down")
interact("walking left")
interact("walking right")
interact("pickup pencil")
interact("pickup wand")
interact("quit")
@gatukgl
gatukgl / PyConUS2021TicketChallenge.py
Last active May 12, 2021 03:09
PyCon US 2021 Free Ticket Challenge
# Instructions
# 1. Write down Python code in say() method
# - This method might have one parameter `number` which possibly 1-99
# - This method need to return an English word for provided number e.g. If the number is 3, should return "three"
# 2. More examples on test data (numbers and words) are in the "Test Data Example" section
# 3. How to run this file through unit tests
# - Open the terminal
# - Run this command "python <path/to/file.py>" e.g. python PyConUS2021Challenge.py
# - If the tests are failed, it will display "FAILED (failures=16)" for example, on the terminal
# - If the tests are pass, it will display "Ran 16 tests in 0.001s OK"