operators – POFTUT

Php – Ternary Operators

We have previously examined the if-elseif-else conditional statements. We know that these statements provide branching ability according to the conditions. While using these statements in single and simple situations it may become a trivial task. Php provides an alternative way for simple usage. This is called ternary operators. Syntax Syntax of ternary operator is like below. … Read more

Multiline Strings in Python

Python supports different types and format strings. In this tutorial, we will simply look at multi-line strings. We have the following code and want to type it in a single expression in multiline. As a practical programming language Python provides different ways to create multi-line strings. Joining Line By Line The most basic and simplest … Read more