0

Help me modify my code

Dinner planning code modification https://code.sololearn.com/clJ33SyVN35C/?ref=app

2nd Apr 2021, 2:18 PM
Valentine Madzore
9 ответов
+ 3
The idea of the code is?
2nd Apr 2021, 2:29 PM
Ipang
+ 1
Just do like this a = input("Enter Names With Space : ") b = a.split() Just modify the code by adding this function The split function take input and make element of list... Like I give input Enter Name With Space : Ram Sam Gita Ramesh The output will be : ["Ram","Sam","Gita","Ramesh"] Just Try It Out.....
2nd Apr 2021, 3:11 PM
Tirthen Patel
Tirthen Patel - avatar
2nd Apr 2021, 3:15 PM
Tirthen Patel
Tirthen Patel - avatar
+ 1
To add the list I given in that code
2nd Apr 2021, 3:16 PM
Tirthen Patel
Tirthen Patel - avatar
0
I think it has a better way to be presented that's what the idea isb
2nd Apr 2021, 2:31 PM
Valentine Madzore
0
So what is your problem or error..
2nd Apr 2021, 2:50 PM
Tirthen Patel
Tirthen Patel - avatar
0
Imagine this I have a list of 3 names I want to add 4 more names to the list there are two ways: 1) you can add the names one by one but your code will be too long 2)or make another list and join them together to make them 7 names So here what I need is to make my code small
2nd Apr 2021, 3:05 PM
Valentine Madzore
0
Thank you ❤️
2nd Apr 2021, 3:18 PM
Valentine Madzore
0
Your Welcome 😀😀😀😀
2nd Apr 2021, 3:19 PM
Tirthen Patel
Tirthen Patel - avatar