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

14th Jan 2023, 11:58 AM
Musaib
Musaib - avatar
7 Respostas
+ 1
Yes, someone can help you for sure. Please post your code attempt, and explain which part gives you difficulty.
14th Jan 2023, 12:18 PM
Tibor Santa
Tibor Santa - avatar
+ 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
14th Jan 2023, 12:19 PM
Lamron
Lamron - avatar
+ 1
Musaib your code seems to be working. Can you share a sample input and expected output?
14th Jan 2023, 12:33 PM
Tibor Santa
Tibor Santa - avatar
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
14th Jan 2023, 12:27 PM
Musaib
Musaib - avatar
0
Lamron Tibor Santa actually problem comes when I paste links from clipboard
14th Jan 2023, 12:29 PM
Musaib
Musaib - avatar
0
Ok wait
14th Jan 2023, 12:34 PM
Musaib
Musaib - avatar
0
Tibor Santa here it is
14th Jan 2023, 12:38 PM
Musaib
Musaib - avatar