0
What is d result of this code ? Nums = [9, 8 ,7 ,6, 5] nums.append(4) nums insert (2,11) print (len (nums))
can u tell me d result of this code. please.
3 Antworten
+ 1
You cannot run it?
+ 1
You have a list with n elements. list.append(<num>) appends <num> to the list. list.insert(<x>, <y>) inserts <y> at position <x> into the list. print(len(list)) prints the "length" of the list, i.e. how many items there are in the list.
0
But why