Python: Operators
Operators are used to perform some kind of operations. We have discussed the following operators-
Operators are used to perform some kind of operations. We have discussed the following operators-
When a program runs, it stores the data it requires, in the memory(RAM). A variable is used to store a reference address of a memory. So the program can store that in the reference address and retrieve data when required. In simple language- A variable is a named identifier(of some memory location), and we can … Read more
We can structure our Python program in 3 ways- All these 3 ways can be combined together to create a full program. Sequential Steps Output: Conditional Steps Output: Repeated Steps Output:
Interactive mode is the quickest way you can start using Python. To use the Python interactive shell we just need Python installed on the machine. Start Interactive Shell Then just type the command “python“, and you will get into the interactive shell- Or if you have Python 3 installed separately, and available as the command … Read more
All Python downloadable versions are available on the official site. In this article we have discussed how to install Python on different operating system.
As a tradition here is the code for the “hello world” program in Python. Create a file with any name you prefer. We are naming the file as “hello”. Then extension of the file should be “.py”. Now, add the following code to the file “hello.py”-
A Docker image is – Docker Image vs Container Let’s have a clear idea about what an image is and how it is related to a container- Check Images Use the following command to get the list of all docker images on your machine- Output: Pull Images We can pull images from the docker hub, … Read more
Heap is a tree-based data structure. The specialty of the heap is in the ordering of the nodes. There can be 2 types of heap-
SplFixedArray is a data structure provided by the Standard PHP Library(SPL). Works similar to the array but is memory efficient. So when memory consumption is a concern in some part of your PHP application then use SplFixedArray instead of standard array.
The Dockerfile contains the instructions for building an image. In general, a Dockerfile has the following Key elements-