
Learn #Python programming from scratch through practical exercises.
Joined December 2018
- Tweets51
- Following1K
- Followers779
- Likes82
Released #Python #Debugging lessons for beginners. Practice fixing common mistakes, SyntaxError, NameError, etc. Free for a few days. pythonprinciples.com/lessons…
9 new #Python challenges for you to test your skills on: pythonprinciples.com/challen…
Just learned about \N in #Python to print unicode characters:
>>> print("\N{winking face}")
😉
New #Python #programming challenges released: "Thousands separator", "Flatten a list", and "Middle letter". Try them online: pythonprinciples.com/challen…
Replying to @PhDemetri
They'll need to know the fundamentals. I'd recommend looking at some beginner books' and courses' contents to enumerate everything, e.g., pythonprinciples.com/lessons… - and less obviously, they'll need to be able to debug at least a little (understand error messages etc.)
Python Principles retweeted
Hey, that's a neat #python trick!
Replying to @Sentdex
Neat trick. You can also use 1e6 or 10**6 to make the integer size instantly clear.
1
If nothing else, you can put the code you write during the courses on github and that'll count for something.
1
Replying to @BiteCodeAI
Remember that sets are unordered, so the result will not have the order of the original list. You can also use a list comprehension: [item for item in list_a if item not in list_b]. Cast list_b to a set and it'll run faster since sets have constant-time lookup.
Replying to @BagHolder1
It has to do with how floating-point numbers are represented at a low level inside your machine. See for example effbot.org/pyfaq/why-are-flo… for a partial explanation and en.wikipedia.org/wiki/Floati… for more info.
2
1
Ever wondered which #programming language to learn first? #Python is probably your best bet. Here's why: pythonprinciples.com/blog/wh…
Here's a list of cool things you can do with #python pythonprinciples.com/blog/wh…
Are you a #programmer looking to move beyond the basics? Do a project! Here's a list of ideas: pythonprinciples.com/blog/pr…
Here's a handy #Python #cheatsheet. It has info about types, terminology, and useful methods. pythonprinciples.com/referen…
Ever wondered how the #python pros debug code in their head? pythonprinciples.com/blog/de…
Protip for #python beginners: if you don't know how to start solving a coding exercise, write pseudocode first. Here's a post with an example: pythonprinciples.com/blog/ho…


