What is wrong | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

What is wrong

y=[2,4,6,8] A=[6,3] if Z= y.append(2): print(Z)

13th Jun 2020, 11:09 AM
Ajisegiri Sunday
Ajisegiri Sunday - avatar
6 Respuestas
+ 5
if Z=y.append(2): what you want to do with this line..?
13th Jun 2020, 11:10 AM
ANJALI SAHU
+ 1
Hay Adeniran I will suggest you to repeat your python course again. This is not English ok . This is programing. So please repeat your course again.🙏
13th Jun 2020, 11:46 AM
Ayush Kumar
Ayush Kumar - avatar
+ 1
I am just a beginner, self taught to be precise, it came to my mind and I am just inquisitive to know about it. I guess you know how to help me
13th Jun 2020, 11:51 AM
Ajisegiri Sunday
Ajisegiri Sunday - avatar
+ 1
Yeah thanks I now know better
13th Jun 2020, 12:57 PM
Ajisegiri Sunday
Ajisegiri Sunday - avatar
0
If you want to make logic with variable Z then create a list with variable Z and store value in it . And then after appending 2 to list y compare it with list Z then it will have some meaning. But now your code is meaningless
13th Jun 2020, 11:23 AM
Ayush Kumar
Ayush Kumar - avatar
0
No I just want to be to do some manipulations.. Trying to do some substitutions like Y=2 If z=y*2 Then=6 Do you get me
13th Jun 2020, 11:35 AM
Ajisegiri Sunday
Ajisegiri Sunday - avatar