0
Help me modify my code
Dinner planning code modification https://code.sololearn.com/clJ33SyVN35C/?ref=app
9 Réponses
+ 3
The idea of the code is?
+ 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.....
+ 1
To add the list I given in that code
0
I think it has a better way to be presented that's what the idea isb
0
So what is your problem or error..
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
0
Thank you ❤️
0
Your Welcome 😀😀😀😀