+ 1
What is "def " , "range" , "len"
Comment me with examples because when i play challenge Many of my questions come from these things.
3 ответов
+ 2
def is a keyword that is used to define a function to perform some task.
def print_hello():
print("Hello")
range() is a predefined function that is used to generate numbers starting from 0 upto given argument.
len() is also a predefined function which is used with lists to find length of a list.
+ 2
Try out the python tutorial! Its got all that and more
0
The thing is, you can't use examples from answers to determine your challenge answers. It is more complicated than that. Try finishing the python tutorial, then you'd have understood a little better then.