Comments (2)
I would say anything goes as long as you have an appreciation of len(string)
by filling in the blank. You could count chars, enter it and maybe correct if you're off by one. Or you could fire up the python command line, query len("It was the best of times,\n\t was the worst of times.")
and give that value if you think it makes sense. You could even just guess then correct when it tells you how off you are.
from python_koans.
I counted it one-by-one and was off by one because I thought that the trailing backslash also adds a new new-line character. So I guess that's what I learnt from it :)
Thanks for your reply and for your time making this project :)
from python_koans.
Related Issues (20)
- about scope HOT 2
- Malika M. H/W HOT 1
- Removing python2 HOT 1
- Suzann Adams python_koans hw HOT 2
- Suzann Adams Python Koans HOT 2
- f-strings in AboutStringManipulation HOT 1
- [feature]: Hope only shows passed test functions in this run HOT 1
- About String Manipulation -> test_raw_strings_do_not_interpret_escape_characters HOT 1
- test_dictionary_is_unordered in about_dictionaries.py doesn't test what it says it tests HOT 3
- This is a great program HOT 1
- SyntaxWarning: "is not" with a literal. Did you mean "!="? HOT 5
- AboutClassAttributes: Order of definition matters
- AboutAttributeAccess: super would resolve to object
- AboutRegex: Unclear Instruction HOT 3
- Thinking _FailedTest not found
- 你用的真是TDD吗?
- AboutStrings: Unclear testing purpose HOT 3
- How to skip lessons
- Koans use testing methods removed in Python 3.12 HOT 2
- Changing default branch name to 'main'
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 python_koans.