What is the following code result in ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the following code result in ?

L1 = [1, 3, 5, 7, 9] print (L1 == L1.reverse ( ) ) print (L1)

7th Sep 2018, 7:39 PM
NIN God Of Death
NIN God Of Death - avatar
6 Answers
0
sorry but answer is false [9, 7, 5, 3, 1] thank you
7th Sep 2018, 7:55 PM
NIN God Of Death
NIN God Of Death - avatar
+ 6
Yep, now that I see it's not an assignment but a comparison, the answer is False.
7th Sep 2018, 8:13 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 5
In case it's Python -- None
7th Sep 2018, 7:46 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 3
yeah, it's a comparison so False in Python.
7th Sep 2018, 8:27 PM
ENES
ENES - avatar
0
yes , You are right .
8th Sep 2018, 8:35 AM
NIN God Of Death
NIN God Of Death - avatar
0
yes , You are right .
8th Sep 2018, 8:36 AM
NIN God Of Death
NIN God Of Death - avatar