+ 1

What is "def " , "range" , "len"

Comment me with examples because when i play challenge Many of my questions come from these things.

6th May 2020, 6:44 PM
Bruklin
Bruklin - avatar
3 odpowiedzi
+ 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.
6th May 2020, 7:11 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 2
Try out the python tutorial! Its got all that and more
6th May 2020, 6:56 PM
Slick
Slick - avatar
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.
6th May 2020, 7:29 PM
Tomiwa Joseph
Tomiwa Joseph - avatar