Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 4

9 bytes removed, 09:24, 21 June 2017
PART 1 - Strings and Substrings
list_of_strings # Display list
list_of_strings[0] # Display first item in list
</source>Since lists are actually a list of '''strings''', you should be able to use any function that works with a string on a list.<br><br>
:#To demonstrate, issue the following:<source>
list_of_strings[0].upper() # Use the function after the index to interact with just affect a single string in the within a list
first_word = list_of_strings[0]
first_word
13,420
edits