The basic rule behind using quotations in Python is that if you are using a single quote in a code, then the entire code should begin and end in a single quote. The same rule applies to using double quotes in a code. When using a specific word in a single quote in a statement, ensure that the entire statement is in double quotes.