13,420
edits
Changes
→PART 1 - Strings and Substrings
course_code = 'OPS435'
course_number = 435
</source>Strings can contain any '''characters''' inside them, whether they are '''letters''', '''numbers''', or '''symbols'''. In our ipython3 shell the values inside each string variable can be seen just by typing the string variable name. However, when writing python scripts, these string variables should be placed inside '''print()''' functions in order to display on the screen.<br><br> Strings can also be '''concatenated''' (i.e. "combined together") by using the '''+''' sign, just make sure string are only concatenating other strings(no lists, no numbers, no dictionaries, etc.).<br><br>:#To demonstratewhat was previously mentioned, issue the following:<source>
course_name
course_code