0
I want to create a programme that will get multiple links in a single input and it will convert the input data into lists can an
I want to create a programme that will get multiple links in a single input and it will convert the input data into lists can anyone help me please
7 Answers
+ 1
Yes, someone can help you for sure.
Please post your code attempt, and explain which part gives you difficulty.
+ 1
It should be as simple, as this:
a = input().split()
print(a)
The program will take one input, you can place several links inside it, separated by the space.
split() method will separate each word/link by space, e.g.
123 abc ā> [123, 'abc']
When you print **a** it will output the list of links, separated by comme
+ 1
Musaib your code seems to be working.
Can you share a sample input and expected output?
0
Tibor Santa Lamron https://code.sololearn.com/cQ7Y7FpD1JK6/?ref=app it's my code but when I paste multiple links it's not providing correct output
0
Lamron Tibor Santa actually problem comes when I paste links from clipboard
0
Ok wait
0
Tibor Santa here it is