Why it doesnot work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why it doesnot work?

c=[6.0,4,7] c.Append (3,8)

24th Apr 2018, 11:38 PM
Omar
Omar - avatar
8 Answers
+ 3
append with lowercase and it takes one argument c=[6.0,4,7] c.append (3) c.append(8) or you can use the extend method c.extend([3,8])
24th Apr 2018, 11:51 PM
MO ELomari
+ 2
c=[6.0,4,7] c.append (3) c.append(8) print(c)
25th Apr 2018, 9:36 AM
MO ELomari
+ 2
Omar o For getting output usually in Python we use print() # it's called print function please use print(c)
25th Apr 2018, 10:12 AM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
+ 1
You have to write c=[6,0,4,7] c.append (3) c.append (8) # append in small letters # append takes only single input
25th Apr 2018, 2:05 AM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
0
هل انت عربي؟ لم افهمك i didnot understand what is tge problem
25th Apr 2018, 12:42 AM
Omar
Omar - avatar
0
i did this but I have no output!!??
25th Apr 2018, 9:11 AM
Omar
Omar - avatar
0
📈A Z M Mushfiqur Rahman📈 plz can u contact with me on facebook??
25th Apr 2018, 11:12 AM
Omar
Omar - avatar
0
send request to me
25th Apr 2018, 2:13 PM
Omar
Omar - avatar