Code Challenge 12 - Build a Tic-tac-toe Game

Posted by PyBites on Mon 27 March 2017 in Challenges • Tagged with codechallenges, learning, game, tictactoe, AI • 2 min read

Hi Pythonistas, a new week, a new 'bite' of Python coding! After last week's conceptual challenge (generators), we'd like to challenge you this week to build Tic-tac-toe. Every time we do games (previously Word Values and Hangman) we learn a lot. Enjoy and we review solutions end of this week.


Continue reading

Twitter digest 2017 week 12

Posted by PyBites on Sun 26 March 2017 in Digest • Tagged with twitter, news, pycon, tips, debugging, itertools, pycharm, beginners, Django, rest, data science, flask, tutorials, python • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Code Challenge 11 - Generators for Fun and Profit - Review

Posted by PyBites on Sat 25 March 2017 in Challenges • Tagged with codechallenges, code review, learning, yield, Counter, glob, regex • 2 min read

It's end of the week again so we review the code challenge of this week. It's never late to sign up, just fork our challenges repo and start coding.


Continue reading

Module of the Week - ipaddress

Posted by Julian on Thu 23 March 2017 in Modules • Tagged with python, tips, code, pybites, ipaddress, sysadmin, stdlib • 3 min read

While playing around with code for our post on generators we discovered the ipaddress module, part of the Standard Library. Such a handy little module!


Continue reading

Best Practices for Compatible Python 2 and 3 Code

Posted by Bob on Wed 22 March 2017 in Tools • Tagged with 2vs3, tox, six, python-modernize, porting, future, 2to3, coverage, futurize, caniusepython3, pip, Requests, Werkzeug • 3 min read

95% of most popular Python packages support Python 3. Maybe you are lucky and get to start fresh using Python 3. However as of last year Python 2.7 still reigns supreme in pip installs and at a lot of places 2.x is the only version you get to work in. I think writing Python 2 and 3 compatible code is an important skill, so lets check what it entails.


Continue reading

Code Challenge 11 - Generators for Fun and Profit

Posted by PyBites on Mon 20 March 2017 in Challenges • Tagged with codechallenges, learning, generators, unix • 2 min read

A new week, a new 'bite' of Python coding! After last week's article on generators we will get you to practice a bit more with them in our new challenge. Good luck and have fun.


Continue reading

Twitter digest 2017 week 11

Posted by PyBites on Sun 19 March 2017 in Digest • Tagged with twitter, news, pypi, Django, Flask, Pandas, cheat sheet, stdlib, APIs, tips, raspberry pi, json, pygame, tutorials • 2 min read

Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.


Continue reading

Code Challenge 10 - Build a Hangman Game - Review

Posted by PyBites on Sat 18 March 2017 in Challenges • Tagged with codechallenges, code review, learning, game, hangman, forks, dunder • 2 min read

It's end of the week again so we review the code challenge of this week. It's never late to sign up, just fork our challenges repo and start coding.


Continue reading

Generators are Awesome, Learning by Example

Posted by Julian on Fri 17 March 2017 in Concepts • Tagged with python, tips, code, pybites, generators, iteration, yield • 5 min read

Learn what a Generator is and check out some different examples.


Continue reading

10 Tips to Get More out of Your Regexes

Posted by Bob on Wed 15 March 2017 in Tips • Tagged with regex, tips, parsing, regular expressions, findall • 5 min read

Regular expressions can be arcane, yet when used with care they can also be very powerful. In this post a couple of tips to get more out of your regexes when using Python's re module.


Continue reading