Functions and Working
Functions and Working
Strings
Backslash (\) Used before single or double quote when the string is started with
single or double quote respectively to let python know the string is
still continued
%s Embed values in a string
Lists
list_name[index position] Printing this will print the specified index number item in the list
and the index number starts from 0. And making it equal to
another value would replace that index position value with the
other one. We can have a subset of the list by placing a colon ( : )
in index position to give a range. E.g [0:3]
List_name.append(xxxxx) Append function is used to add values in the list at the end of the
list.
del list_name[index position] To delete the specified index position item from the list