Beruflich Dokumente
Kultur Dokumente
Course Module 3 Sequence Iteration between strings & lists Cast String to List
Previous Next
MSXIPFXX2017-V003200
Watch later Share
Video Transcripts
Download video le Download SubRip (.srt) le
Download Text (.txt) le
Concept
Examples
# [ ] review and run example
hello_letters = list("Hello")
print(hello_letters)
Task 5
end=" " con guration in printing
Task 6
cast: str to list
Msg_characters = list("Always test your code")
Task 7
Program: add the digits
create a 20 digit string, and cast to a list
Hint: use cast to sum the digits, and .join() to create the equation (1+2+3+...)
Previous Next