+ 1

Please tell me the explanation of below code

list=['(',1,2] index=2 list.insert(index,",") print(*list,end=")")

2nd Feb 2023, 2:13 PM
Om Yele
Om Yele - avatar
7 Antworten
+ 5
Om Yele Already you got answer. If you want to ask other question create new but before that use search bar. Keep learning message feature will be activated.
3rd Feb 2023, 7:32 AM
R🍁🇮🇳
R🍁🇮🇳 - avatar
+ 2
Om Yele You need to mail , to resolve it. May be problem with your account or not using app regularly. mailto: info@sololearn.com
3rd Feb 2023, 8:18 AM
Jayakrishna 🇮🇳
+ 1
list=['(',1,2] # initial list index=2 list.insert(index,",") # adding ', ' at index 2 in list print(*list,end=")") # printing list values as space separated with ')' is at end on console. So output is: ( 1 , 2 ) # finally, and list is [ '(', 1, ', ' , 2 ]
2nd Feb 2023, 2:28 PM
Jayakrishna 🇮🇳
+ 1
What is *list
2nd Feb 2023, 2:55 PM
Om Yele
Om Yele - avatar
+ 1
Unpacking the list. List values printed by space separating.. https://www.sololearn.com/Discuss/2521834/?ref=app
2nd Feb 2023, 3:51 PM
Jayakrishna 🇮🇳
+ 1
Thankyou very much , Jayakrishna
2nd Feb 2023, 3:56 PM
Om Yele
Om Yele - avatar
+ 1
I want to message someone then i don't able to message someone on this app
2nd Feb 2023, 3:56 PM
Om Yele
Om Yele - avatar