Python Data Types Code Switching