Q. Create a list SqLst that stores the doubles of elements of another list NumLst. Following code is trying to achieve this. Will this code work as desired? What will be stored in SqLst after following code?
Numlst = [2, 5, 1, 7, 3, 6, 8, 9]
Squst = NumLst * 2
Answer :-
No, This will not stores the doubles of elements.
>SqLst stores :- [2, 5, 1, 7, 3, 6, 8, 9, 2, 5, 1, 7, 3, 6, 8, 9]
Answer ?
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )