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
What is the addView method in android ?
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
what is a character in python ?
What is a character in python ?
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
what is a byte ?
what is a byte ?
A byte is 8 bits ,
[_ _ _ _ _ _ _ _ ] 7 6 5 4 3 2 1 0 number of bits = 7 - 0 + 1 = 8
A … Read More
reversed in python , a tutorial
What is reversed?
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
Generators in python , a tutorial
What is a generator
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
what is an object in python ?
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
Python iterable and iterator a tutorial
what is an iterable ?
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
Sets in python a tutorial
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
How To Use The TimeIt Module in python
The timeIt module is used to test how fast our code is . We can use it to compare different functions or classes or just some line of code ,and see how fast they are .Also if we want we … Read More
