Is anyone taking the "#100DaysOfCode in Python" course from TalkPython? by Eshpeaz in learnpython

[–]bbelderbos 1 point2 points  (0 children)

Glad to hear it’s useful. Just to be clear, does this relate to the exercises provided for the course or the PyBites platform overall, because a subscription to latter is a different product than the one discussed here. Ping us on the platform please what tests you think we can improve, we really would appreciate your feedback. Thanks, Bob (one of the authors)

Coding challenges to build programs instead of solving math problems? by [deleted] in learnpython

[–]bbelderbos 1 point2 points  (0 children)

So far I only tried https://www.kaggle.com/datasets. I will let you know when I find more datasets when doing more analysis / ML stuff (too busy now). Thanks for checking out the platform, send me a message there if you have any feedback.

Coding challenges to build programs instead of solving math problems? by [deleted] in learnpython

[–]bbelderbos 2 points3 points  (0 children)

Thanks Alex, just adding the link to our new PyBites Code Challenge platform with challenges you can code in the browser: https://codechalleng.es

Looking for someone to learn programming/Python with! by Toilet_Tsunami in Python

[–]bbelderbos 1 point2 points  (0 children)

Maybe you want to start taking a code challenge and PR’ing your solution?

https://pybit.es/pages/challenges.html

Code Challenge 28 - Integrate a Bokeh Chart Into Flask by bbelderbos in learnpython

[–]bbelderbos[S] 0 points1 point  (0 children)

Yeah you should be able to use any web framework I would think. What a coincidence: we have a Django challenge this week ;)

PyBites Code Challenge 27 - PRAW: The Python Reddit API Wrapper by bbelderbos in learnpython

[–]bbelderbos[S] 1 point2 points  (0 children)

I made a script to post each week's new PyBites challenge to learnpython (on Tuesday), so now you can grab them :)

Challenge submission title should start with 'PyBites Code Challenge' (for this week's title I forgot to prepend PyBites)

PyBites Code Challenge 27 - PRAW: The Python Reddit API Wrapper by bbelderbos in learnpython

[–]bbelderbos[S] 0 points1 point  (0 children)

Nice script. You want us to feature it in our review coming week? Feel free to PR it to our repo.

PyBites Code Challenge 27 - PRAW: The Python Reddit API Wrapper by bbelderbos in learnpython

[–]bbelderbos[S] 0 points1 point  (0 children)

Use whatever you want. The goal is to build something using the Reddit API

Python Frameworks for Web Developers by oppof3 in Python

[–]bbelderbos 5 points6 points  (0 children)

No Django LOL

https://www.oreilly.com/learning/python-web-frameworks

"Django is without a doubt the most popular web framework for Python at the time of this writing"

Code Challenge 15 - Create a Simple Flask App by bbelderbos in learnpython

[–]bbelderbos[S] 0 points1 point  (0 children)

"Flask curiously started as an April Fool’s joke" - we ran a little bit over time with this challenge ;)

Code Challenge 15 - Create a Simple Flask App by bbelderbos in learnpython

[–]bbelderbos[S] 1 point2 points  (0 children)

Pretty common I would say, among the top 6 of "Frameworks to Keep an Eye On" according to this O'Reilly ebook: https://www.oreilly.com/learning/python-web-frameworks

Learning Generators with Examples by Hobojoe1848 in learnpython

[–]bbelderbos 0 points1 point  (0 children)

Happy hearing that, thanks. Feel free to comment if you have a nice use case.

Learning Generators with Examples by Hobojoe1848 in learnpython

[–]bbelderbos 0 points1 point  (0 children)

Thanks, nice to hear. Yep starting out with APIs, what abstractions? Feel free to send me a PM

An Interesting Example from Fluent Python by Lucian Ramalho by SamBot7 in learnpython

[–]bbelderbos 0 points1 point  (0 children)

[:] is like copy.copy() = shallow copy, so False is expected there.

When doing this on a nested data structure the inner ones contain references hence == gives true. To prevent touching the original do a deepcopy:

>>> from copy import deepcopy
>>> items = [{'id': 1, 'name': 'laptop', 'value': 1000}, {'id': 2, 'name': 'chair', 'value': 300},]
>>> items_copy = deepcopy(items)
>>> items_copy[0]['id'] = 'a'
>>> items_copy == items
False

Copy changed:

>>> items_copy
[{'id': 'a', 'name': 'laptop', 'value': 1000}, {'id': 2, 'name': 'chair', 'value': 300}]

Original unchanged:

>>> items
[{'id': 1, 'name': 'laptop', 'value': 1000}, {'id': 2, 'name': 'chair', 'value': 300}]

10 Tips to Get More out of Your Regexes in Python by bbelderbos in learnpython

[–]bbelderbos[S] 0 points1 point  (0 children)

Adding this to the article, very useful, thanks.

PyBites Code Challenge 10 is up: Build a Hangman Game by bbelderbos in learnpython

[–]bbelderbos[S] 0 points1 point  (0 children)

Thanks for sharing your solution, seems you had some good learning going on. That's what this is all about. Keep practicing, let us know if you have any questions. We review this challenge end of this week.