ITI 1120 Study Guide - Midterm Guide: Memory Address, Type Conversion, Tuple
Document Summary
It is on of the keys to the loops in python. Arithmetic expressions in python (including +,-,*, /, exponentiation **, integer division //, mod %, ) : +, -, *, /, %, **, // (2. 5 2) order of operations matters bedmas use brackets. Strings (including + operator being concatenation on strings): string ( djfsdkf ) quote = live, love, laugh quote2 = quote + quote print( i don"t like , end= ) print ( newlines ) >>> i don"t like newlines new lines = print( \n * 7) string. capitalize() -- will capitalize string string. find() will return the len where the insert is in the string string. isaplha() string is all letter. Similar to list, but will not be able to change tuple about making it. Pi_tuple = (3,1,4,1,5,9) - round bracket instead of [] for lists. New_tuple = list(pi_tuple) - converts tuple into a list. New_list = tuple(new_tuple) - coverts list into tuple.