bootstrap 4 grid examples

Bootstrap grid system provides a quick and convenient way to create responsive website layouts. The latest Bootstrap 4 version introduces the new mobile-first flexbox grid system that appropriately scales up to 12 columns as the device or viewport size increases. Bootstrap…

how to make bootstrap 4 modal

Modal is a child window that is layered over its parent window. It displays the content from a separate source that can have some interaction without leaving the parent window. Basic Modal Create a modal by using the .modal class and attribute data-toggle…

what is python used for ?

Python lets you develop a web application without much trouble. It has libraries for internet protocols like HTML and XML, JSON, e-mail processing, IMAP, FTP and easy-to-use socket interface. The package index have more libraries: Requests – An HTTP client library…

python break out of function

What is the use of break and continue in Python? In Python, break and continue statements can alter the flow of a normal loop. Loops iterate over a block of code until the test expression is false, but sometimes we…

Convert Strings into Integers in Python

Just like the str() built-in, Python also offers a handy built-in which takes a String object as an argument and returns the corresponding integer object. Example [crayon-5dac19abd8ead485530943/] Output [crayon-5dac19abd8eb1646656250/]  

python not equal operator

Python, not equal operator returns True if two variables are of the same type and have different values, if the values are same then it returns False. Python is dynamic and strongly typed language, so if the two variables have the same…

python round function

The round() function returns the rounded floating point value number, rounded to ndigits digits after the decimal point. If ndigits is omitted, it defaults to zero. Note: For the built-in types supporting round(), values are rounded to the closest multiple of…

python square root without math

Python has an exponentiation operator (**) which can be used to calculate the power of a number. x**y returns x raised to y i.e. y times multiplication of x. Since we need to calculate square root, y should be (1/2)…

python absolute value

The abs() function returns the absolute value of the given number in Python. The abs() function takes an argument which is the number that you want to get the absolute value. The argument value can be: An integer number (negative or positive)…

Python Substring examples

Create a Substring We can create a substring using string slicing. We can use split() function to create a list of substrings based on specified delimiter.   [crayon-5dac19abd931d991860006/] [crayon-5dac19abd9320219961909/] Count of Substring Occurrence We can use count() function to find the number…
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages