7 kyu
Coding Meetup #11 - Higher-Order Functions Series - Find the average age
4,752 of 5,847PiotrBerebecki
Loading description...
Functional Programming
Data Structures
Arrays
Fundamentals
Algorithms
Strings
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
COBOL translation, please review carefully.
approved
fork fixing a rounding issue.
Approved by monadius
I'm interested to see the Python solutions for these kata. Coming from a functional approach, it's natural for me to solve these problems using
lambdas
, maps, filters, and list comprehensions. But Python, while it allows this approach, doesn't actively encourage these techniques (God forbid you, for example, try and assign an anonymous function to a variable while you have yourPEP8
warning messages turned on in your IDE!)This is probably an issue on my end but can anyone inform as to why I receive this error in python when I try to submit my solution?
Traceback (most recent call last): File "tests.py", line 2, in from solution import get_average ImportError: cannot import name 'get_average' from 'solution' (/workspace/default/solution.py)
Have you renamed the function? It should be like this:
Thats my bad, I had coding meetup #8's function name as the name of the function since I had just completed that kata previously. I should have paid more attention before commenting but thank you for your help.
Python translation please check and aprove
Approved
I did it a different way and when I run the test cases, I print the right output, but still shows as test case failed... Why??????
Hi, you can use the test suite output to debug your code as all inputs are logged.
.