February 2018
Intermediate to advanced
262 pages
6h 59m
English
The Python list function takes a string and converts it into a list of individual characters. This does the job of converting the text into characters. The following code block shows the code used and the results:
thor_review = "the action scenes were top notch in this movie. Thor has never been this epic in the MCU. He does some pretty epic sh*t in this movie and he is definitely not under-powered anymore. Thor in unleashed in this, I love that."print(list(thor_review))
The result is as follows:
#Results['t', 'h', 'e', ' ', 'a', 'c', 't', 'i', 'o', 'n', ' ', 's', 'c', 'e', 'n', 'e', 's', ' ', 'w', 'e', 'r', 'e', ' ', 't', 'o', 'p', ' ', 'n', 'o', 't', 'c', 'h', ' ', 'i', 'n', ' ', 't', 'h', 'i', 's', ' ', ...
Read now
Unlock full access