Let us say we have a string and we want to permutate through its letter . So for example
- if the string is empty it will return an empty list
- if it contains only one characters it must return a
Let us say we have a string and we want to permutate through its letter . So for example
We must print an english ruler using recursion . An english ruler is ruler where each unit has a number of tick. a unit can be divided into smaller units at 1/2 the interval 1/4 the interval 1/8 the interval … Read More
The addView
method, is used to add a View
programmatically to a ViewGroup
. A ViewGroup
can be for example, a LinearLayout
, or a RelativeLayout
.. A ViewGroup
is itself a View
. The addView
method is overloaded.
The… Read More
A character in python is represented using a Unicode code point. A Unicode code point is written by using U+
followed by a number written in hexadecimal . This number written in hexadecimal … Read More
A byte is 8 bits ,
[_ _ _ _ _ _ _ _ ] 7 6 5 4 3 2 1 0 number of bits = 7 - 0 + 1 = 8
A … Read More
The reversed class is used to create a reverse iterator from an object .
This object , must either implement the __getitem__
and the __len__
special methods . In this case reverse will create an iterator from
A generator simply generates data that we are going to use someplace. For example ,if we want to generate some random characters , or if we want to generate a number in a mathematical series , … Read More
In python , we have the class type , and we have the class object .
The class type is used to create a new type/class .
The class type is also used to get the type/class used to create … Read More
In python , objects are abstraction of data , they have methods that work with data , and help us to manipulate it . If we take a look at a list , and see … Read More
In this tutorial , we will show how to use sets in python . We will start by explaining what is a set. After that we will explain how to use sets , so the various operations that we can … Read More