Comments (4)
Do you have your solution to reproduce it? Challenge 01 right? Thanks
from challenges.
My Challenge 1 also fails your tests but it works. Rather my solution raises an error running your test: I get TypeError: expected str, bytes or os.PathLike object, not tuple
using open(dict_file) as f:
in my load_words function. You can see my code here: https://github.com/richyvk/challenges/blob/master/01/wordvalue.py
It's probably something I've done wrong!
from challenges.
Problem seems the default arg of max_word_value:
def max_word_value(words=DICTIONARY):
....
If you set it up as in our solution:
https://github.com/pybites/challenges/blob/solutions/01/wordvalue.py
Like so:
def max_word_value(words=None):
...
"""
if words:
words_list = words
else:
words_list = load_words()
It works:
Ran 3 tests in 0.828s
OK
HTH
from challenges.
Thanks. I see now what I did wrong!
from challenges.
Related Issues (20)
- Challenge 04: techmoneykids is no longer a valid twitter handle HOT 3
- Dockerise Application HOT 1
- Peer Code Review HOT 2
- Your movie site in just one minute HOT 1
- make a pybites url shortener? HOT 5
- Automating the Process of Scraping all Hackerrank Solutions.
- Marvel part II
- Write your own parser with PLY!
- Make a double entry accounting system!
- Redo challenge 11 with Coroutines. HOT 1
- funny datetime flask challenge
- PR shows all previously changed files and previous commits HOT 2
- a challenge around tkinter HOT 2
- PCC02 Problem related to dictionary path (Maybe related to Windows) HOT 5
- Mapping HOT 2
- Badges!
- clarity to 03 HOT 2
- Slack Link not working? HOT 2
- bb
- PCC13 - the provided test is quite strange
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from challenges.