Function argument basics, membership operators
No account is required. Learn the material, try the examples, and mark it complete locally when you are ready to move on.
By now, we have studied certain code blocks. But what if we have a situation where we have codes which needs repetition. We would have to write the same code all over again. For that purpose, we use loops.
But before we start loops, lets learn first a little basics of functions are. We have been using functions all along, right.
print()
range()
list()
set()
dict()
tuple()
were a couple that we used
Lets dive a little deeper into the range() function. functions will have a whole dedicated chapter, so for now, all I want my audience to focus on is, how we use them.
Range() function
You could recall that we used a range() function to generate lists. Actually, range() is just a sequence generator. range() is a python object (which we will cover in depth later)
So, if we make a range(10) and print its output, it'd look something like this.
range(10)