In this article we look at more functions and methods associated with lists, this is a follow on from our first part – Python Lists : the basics Length, maximum …
-
-
The List is an extremely versatile datatype which is available in Python and can be written as a list of comma-separated values between square brackets. Lets look at some important …
-
Python supports the following types of operators. Arithmetic operators Assignment operators Comparison operators Logical operators Identity operators Membership operators Bitwise operators In this article we will look at Arithmetic operators, …
-
A tuple is a collection which is ordered and unchangeable. This means you can not add an item to a tuple and you cannot remove an item from a tuple. …
-
The ability to generate random numbers or strings is very important in programming languages whether its a game where you generate enemies in a random position, a password generator where …
-
Body mass index (BMI) is a value derived from the mass (weight) and height of a person. The BMI is defined as the body mass divided by the square of …
-
The Magic 8-Ball is a plastic sphere, made to look like an eight-ball, that is used for fortune-telling or seeking advice There are 20 possible answers inside a standard Magic 8 …