Pybites Platform 2.0 is live 🎉 🐍 Join us now 📈
Login to code Are you an absolute beginner to Python? The best way to learn the basics is by coding on day one! Learn the essential Python building blocks through the Newbie Bites below.
Newbie Bite 01. Assigning Objects Welcome to our Newbie Bites, it's time to learn the basics of Python! If you are new to our platform …
0
Newbie Bite 02. Basic Data Types If you really think about it, there are multiple different types of data that you can play with when coding. …
Newbie Bite 03. Basic Printing Before we dive too far into these objects, let's quickly look at how we print to the screen. Almost every …
Newbie Bite 04. Printing Objects Excellent! We know things! Now that we have data assigned to objects and we know how to print, let's print …
Newbie Bite 05. Basic Maths We're able to print integers. Now what? Yep, it's time for some maths! Wooo!
Newbie Bite 06. Additional Maths Let's quickly cover off the rest of the math operators. We've had a look at addition so next we need …
Newbie Bite 07. User Input Quite often as you make scripts and applications you're going to need to grab user input. One of the ways …
Newbie Bite 08. String Manipulation There are times you'll need to manipulate the strings you've assigned to a variable. Case in point, when you're dealing …
Newbie Bite 09. Lists Next up on our Python journey we're going to dive into what a list is in Python.
Newbie Bite 10. Returning items by list index Lists are pretty awesome (both in Python and in real life, am I right?). They're also pretty fun to work …
Newbie Bite 11. Adding and Removing items from a list Now that we have our list, what if we decide we want to change it after it's been defined/created?
Newbie Bite 12. Dicts It's time to dive into the next data structure in Python: the Dictionary!
Newbie Bite 13. Dict data retrieval methods Excellent! We know what a dict is and what it looks like! Now let's access the data stored inside?
Newbie Bite 14. Functions Here we go, the big one. Functions! This is where things really start to get fun!
Newbie Bite 15. Functions part II Functions can be kind of tricky to start off with so let's do a bit of practice.
Newbie Bite 16. Equals Operator In this quick bite we'll teach out about the equals operator.
Newbie Bite 17. If / else It's time to look at the amazing if statement! It's one of the most valuable bits of code in your …
Newbie Bite 18. Truthiness One of the things we often need to check when we code is whether a condition is True or False. …
Newbie Bite 19. Less than and greater than We'll now take a look at usage of the "less than" < and "greater than" > operators.
Newbie Bite 20. While loop The next challenge is to learn all about the while loop. Let's dive right in.
Newbie Bite 21. Comments Time to look at one of the more useful aspects of programming: Comments!
Newbie Bite 22. For loops It's time to move on to a slightly more complex but brilliant loop: the for loop!
Newbie Bite 23. Looping through a dict While we've explained how for loops work, it's worth diving into how we use them with dictionaries.
Newbie Bite 24. Tuples One data type we've yet to cover is the tuple. It's a special one so here we go.
Newbie Bite 25. Calling a function The last Bite! Let's actually use what we've created by learning how to actually call a function.
Newbie Bite 26. Reading Errors Welcome to the second half of the Newbie Bites. We created this second half of Bites to better prepare you …
Newbie Bite 27. Failing Tests As you continue your coding journey on our platform, it's essential to become proficient in reading and interpreting failing test …
Newbie Bite 28. Type Hints In this bite, we are going to explore type hints in Python. Type hints are a feature introduced in Python …
Newbie Bite 29. Default Arguments In this Bite, we are going to explore the concept of default arguments in Python functions. Default arguments allow you to …
Newbie Bite 30. Special Chars In this Bite, you'll learn about special characters in Python strings. Special characters like \n and \t are used to …
Newbie Bite 31. Word Count In this bite, we are going to explore two useful string methods in Python: .split() and .splitlines(). These methods are …
Newbie Bite 32. Dict Retrieval - part 2 In this bite, we are going to revisit dictionaries. The point of a dictionary is that you have two pieces …
Newbie Bite 33. Dict Retrieval - part 3 In this bite, we continue our exploration of Python dictionaries. Dictionaries are powerful data structures that allow you to store …
Newbie Bite 34. Random Module In this Bite, you'll write a simple number guessing game using Python. An essential part of this exercise involves using …
Newbie Bite 35. Working With Dates In this bite, we are going to explore the datetime module in Python. Inside of datetime is a class called date. …
Newbie Bite 36. Working With Dates - part 2 In this Bite, we are going to continue working with dates in Python, focusing on using the date class from the …
Newbie Bite 37. Make a Class In this Bite, you'll learn about writing Python classes. Classes are like blueprints for creating custom objects.
Newbie Bite 38. Class With Str This Bite continues where the previous class Bite left off. You are presented with a Rectangle class, and you will …
Newbie Bite 39. Make a Dataclass In this Bite, you'll explore Python dataclasses, introduced in Python 3.7 to simplify class definitions for storing data.
Newbie Bite 40. Scope In this Bite, you'll learn about variable scope in Python. Understanding variable scope is essential for understanding which objects you …
Newbie Bite 41. String Manipulations In this Bite, you'll learn more about manipulating strings in Python. String manipulation is a fundamental skill in programming, allowing …
Newbie Bite 42. List Comprehension In this Bite, you will learn how to write list comprehensions. List comprehensions are a concise way to create lists …
Newbie Bite 43. Named Tuple In this Bite, you'll learn about the namedtuple object. These objects are similar to a regular tuple; However, while elements …
Newbie Bite 44. Constants In this Bite, you'll learn about assigning and using constants in Python. Constants are values that do not change throughout …
Newbie Bite 45. Exceptions In this Bite, we introduce you to the essentials of exception handling in Python. Exception handling is a crucial aspect …
Newbie Bite 46. For Loop With Break And Continue In this Bite, you'll learn how to control the flow of a for loop using the break and continue statements. These …
Newbie Bite 47. In Operator In this Bite, you'll learn how to use the in operator to check for the presence of multiple items in …
Newbie Bite 48. String Module In this exercise, you'll practice writing another list comprehension (a robust tool for creating lists from other iterables and one …
Newbie Bite 49. Formatting Intro In this Bite, you'll learn about string interpolation using the .format() method in Python. String interpolation allows you to insert …
Newbie Bite 50. Read The Docs In this Bite, you'll practice reading and using Python's official documentation. This is an essential skill for any developer, as …