+ 8
How can I do this in python lists? See desc
We are given a list ['hi', 'bye'] how can I make it this: [['h', 'i'], ['b', 'y', 'e']] I Need Help...
4 odpowiedzi
+ 6
Here is an example:
https://code.sololearn.com/cymTLKGs00pJ/?ref=app
+ 7
Thanks D'lite I will try 😊
+ 6
Ulisses Cruz Thanks man it worked 😊
+ 2
You could also use this ::
words=["hi","bye"]
hi=words[0]
bye=words[1]
words=[]
Hi=[]
Bye=[]
for letter in hi:
Hi.append(letter)
for letter in bye:
Bye.append(letter)
words=[Hi,Bye]
print(words)