Tag: python
I will start collecting some interview questions. Q: Implement a Division but cannot use the division operator ‘/’ on two integers. A: We can use substraction instead. However, we …
The Python way of initializing a list can be clearly expressed as the multiplication operator: * for example, # an array of ten integers, which are all initialized to …
Python is an interpreted programming language. However, similar to Java, it compiles the source code to byte-code, which will improve the code performance. Java compiles the source code (*.java) …
Running external programs are very essential in most programming languages, especially the scripting e.g. BASH, python. For exampe, the well-known grid job scheduler CONDOR can be configured to submit …
The fork() is one of the important methods that allows multiprocess/multitasking in Linux operating system. The following C code can be compiled in Linux. #include <unistd.h> int main() { …