In this code example we will create a simple clock. There will be a console based example and a simple gui version as well. We will use the datetime module …
-
-
In this code snippet we show you how easy it is to make a password generator using python. Here are a couple of rules You should try to make sure …
-
Its handy to have a collection of useful little snippets when you are using any programming language. This is ours for python– work in progress as we various of them …
-
Reserved Words The following shows the Python keywords. These are reserved and you cannot use them as constant or variable or any other identifier names. and exec not assert finally …
-
Comparison operators are used to compare two values Operator Description == If the values of the two operands are equal, then the condition is true. != If the values of …
-
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 …