In C++ there are .h and .cpp files for design and implementation of code respectively. Is there a similar way to structure files in Python? Can I define my class in one file, and then put all the code for that class in another?
I feel like the answer is "no". I've tried looking up the answer, but the closest results were just how to merge c++ and python.
It would be much less worthwhile to do than in c++ because as AlexG mention python is not a compiled language. However, you could achieve a "similar" effect by linking to another python file. For example, if you wanted to have all of your functions created in a single file, and all of your logic done using those functions in another you would simply use import filename and you could reference your functions in the second file like you would in a .h and .cpp file.
Is there a Python version of .h and .cpp files?