Programming – Page 29 – POFTUT

Category: Programming


Python For Loop Tutorial With Examples and Range/Xrange Functions

For loop is used to iterate over given sequence. Sequence can be a list, dictionary or similar enumerable object for python programming language. For loop is a bit different from other languages like C, C++, Java … For loop in python mainly uses object to iterate but in other languages counting and statements are used mainly. Syntax Syntax of for loop is like below which consist of for keyword an item,...


Python List or Array Tutorial With Examples

Python provides different data structures to store, modify, select, remove data. The most popular data structure is list. List is used to store sequential data in a single variable. Being sequential gives abilities like sort, list, add, index, loop etc. Array Python lists are very similar and provides same functionality of arrays in other languages like C, C++, Java …  Here a list of same functionalities shared by lists and...


What is Python Programming?

Python is a programming language created at 1991 by Guide van Rossum. Python is influenced by C, C++, Haskell, Java, Lisp etc. There are different implementations like CPython, IronPython,Jython, PyPy. Most popular implementations is PyPy . Interpreted Python is an interpreted language which makes it practical for scripting of fast moving projects. Provided python code or script is interpreted an python interpreter and executed accordingly. Dynamic Type As a interpreted...


Python Date Time Functions With Examples

Date time is important part of the application development. Date is used in different format to show, save, or compare events and process. Date and time have different presentation formats which may be change according to countries and localization settings. In this tutorial we will look different usage examples of datetime operations. Import Datetime Library Python datetime functions are provided by the library named datetime and in order to use date...

How To Get Length and Size Of The List In Python? 2

How To Get Length and Size Of The List In Python?

Python is a very expressive language which provides different structures to easy developers work. The list is one of the most popular data structure provided by the python. In a regular workflow, we add and remove elements into and from the list. But in this floating situations, we need to get the length of the list. How can we get the length or size of the list? In this tutorial,...


Random Number Generator In Python

Python is practical language which provides different functions in practical way. Random number are generally used in security related issues but there are other areas too. In this post we will look different random number generation examples about python. Generate Random Number Between 0 and 1 Python provides a library named random by default. This library is used to provide different type of random functions according to given parameters. We will...


Dictionary In Python Tutorial With Examples

Dictionaries is complex data structures those hold information about different type and related information. Dictionaries also called associative memories or associative arrays in different languages. Dictionaries generally format in key and value pair. Keys are used to label and  search and find values. Create Dictionary As we say before we will provide key and value pair. In this example we will create a phone book. The name of the phonebook is pb and have some...


Different Ways To Use Python Print Function

Python is very expressive language which provides a lot of different output types and extensions. Printf is one of the most used function to print output. In this tutorial we will look different usage types of printf Print String Value This is the simplest usage form of the printf function. We will create a variable named a which holds string “Hi Poftut” . We will print this string by providing in to print function.



Powershell If-Elseif-Else Conditional Statement

Powershell is a really powerful scripting language. It provides  a lot of modern useful programming language features. It also have basic features like conditional statements like If . In this tutorial we will look syntax and use cases of If . If is used to check if specified condition/s are met and if the condition is met do something if not check other conditions or exit. We will look different usage...


Powershell Comparison Operators Like Equal, Greater, Lesser, Contains, Regex

Comparison operator is used to compare given values and return an boolean value like true and false . These operators are generally used by if , while and similar decision making keywords. All comparison operators are case-insensitive by default. So the uppercase or lowercase expression do not changes the behaviour of these comparison operators. Equal One of the most used comparison operator is equal. This operator check whether given values are equal or not...

Enjoy this blog? Please spread the word :)