Sketch of a Swan

April 25, 2021 2 comments

Using a pencil then black pen and a photo from the Net as a reference, here is a sketch of a Swan in a Lake.

Follow me on Twitter @h_ta3kees

ali radwani draw sketch pen pencil swan lake

Flowers in my lens… 9

April 22, 2021 Leave a comment

Some time the Fake is there as well as the real…. Here are some small FAKE pink flowers in a bouquet of flowers. I use a galaxy Note 9 phone to take this photo.

Click here and follow me on Twitter @h_ta3kees

ali radwani doha qatar pink flowers photo galaxy note9

Coffee and Boat

April 20, 2021 Leave a comment

Some time you need a coffee, and some time you need a strong one .. here is a small shot of Turkish Coffee in a small beautiful cup from Holland . Photo taken by galaxy Note 9 .

Click and follow me on Twitter @h_ta3kees

ali radwani Turkish coffee and boat camera galaxy note9

A Sketch of Hoopoe

April 18, 2021 Leave a comment

Using a pencil then black pen and a photo from the Net as a reference, here is a sketch of a Hoopoe with an insect in it mouth.

Follow me on Twitter @h_ta3kees

ali  radwani drawing sketch sketchbook hoopoe bird pen pencil

Flowers in my lens … 8

April 15, 2021 Leave a comment

Here is another photo taken with a #galaxy #Note9 phone for some flowers from my garden..

For mor follow me on Twitter @h_ta3kees

Ali radwani flowers in garden camera photo photography

Flower in my Lens … 7

April 13, 2021 Leave a comment

As daily walking arond, here is another flower in my garden, I am using the Galaxy Not9 phone to take the photo.

You can follow me on Twitter @h_ta3kees

Another sketch challenge: Lion’s Face

April 11, 2021 Leave a comment

This week sketch challenge @1hour1sketch is to Draw a Lino Face, so here is my sketch using pencil, black Pen.

I tried to do my best to draw the hair/mane am sure I can’t do better than this, I need more practice in doing fur drawing.

More Sketches on my Sketch page ..

also follow me on Twitter @h_ta3kees

 

 

Flowers in my lens..6


Another beautiful flower in taken by Galaxy Note 9. Setup on a table with a coffee Mug. Follow me on Twitter @h_ta3kees

 

 

 

Flowers in my lens … 5


Here is another photo sample taken with #galaxy #Note9 phone for some flowers in my garden..

For mor follow me on Twitter @h_ta3kees

 

 

 

Python Project: Disarium Number



Learning : Python to solve Mathematics Problems
Subject: Disarium Number

In Mathematics there are some formulas or let say rules that generate a sequence of given a certen result, and accordingly we gave that number or that sequence a name, such as even numbers, odd numbers, prime numbers and so on.

Here in this post we will talk about the Disarium Number and will write a code to check if a given number Disarium or Not.
Defenition: A Number is a Disarium if the Sum of its digits powered with their respective position is equal to the original number. Example: If we have 25 as a Number we will say: if (2^1 + 5^2) = 25 then 25 is Disarium.
So: 2^1 = 2, 5^2 = 25, 2+25 = 27; 25 NOT Equal to 27 then 25 is NOT Disarium.

Let’s take n = 175:
1^1 = 1
7^2 = 49
5^3 = 125
(1 + 49 + 125) = 175 thats EQUAL to n so 175 is a Disarium Number.

In the bellow code, we will write a function to take a number from the user the check if it is a Disarium Number or not. In this function we will print out the calculation on the screen. Let’s start by writing the function

# is_disarium function.
def is_disarium(num) :
"""
Project Name: Disarium Number
By: Ali Radwani
Date: 2.4.2021
"""


the_sum = []
l = len(num)
for x in range (0,l):
print(num[x] , '^',x+1,'=', (int(num[x])**(x+1)))
the_sum.append((int(num[x])**(x+1)))

if int(num) == sum(the_sum) :
print ("\n The sum is {}, and the original Number is {} So {} is a Disarium Number.".format(sum(the_sum),num,num))
else:
print ('\n The sum is {}, and the original Number is {} So it is NOT Disarium.'.format(sum(the_sum),num))


num = input('\n Enter a Number to check if it is Disarium. > ')

# Call the function and pass the num.
is_disarium(num)
ali radwani python project learning sql codeing

To Download my Python code (.py) files Click-Here


Follow me on Twitter..


By: Ali Radwani