Archive

Posts Tagged ‘Doha-Qatar’

Flowers in my lens.. 2

February 25, 2021 2 comments

Using the #galaxy #Note9 I take a photo of this flowers in my garden. You may follow me on Twitter Here.

Ali radwani pink red flowers photo Photography

Flowers in my lens ..1

February 21, 2021 3 comments

This is a photo taken by Galaxy Note9 handheld..

Ali radwani yellow flowers photo Photography

You may follow me on Twitter Here.

Ali,

Another sketch challenge week: Parrot

February 18, 2021 Leave a comment

This week sketch challenge @1hour1sketch is to Draw a Parrot, so here is my sketch using pencil, black Pen. More Sketches on my Sketch page .. also follow me on Twitter @h_ta3kees

Ali radwani drawing sketch challenge 1hour1sketch pen pencil parrot

Another Sketch Challenge: Giraffe

January 23, 2021 Leave a comment

This week sketch challenge @1hour1sketch is to Draw a Giraffe, so here is my sketch using pencil, black Pen. More Sketches on my Sketch page ..

Ali radwani drawing giraffe sketch challenge 1hour1sketch pen pencil

By: Ali Radwani.

Another Sketch Challenge: Puffin

December 6, 2020 3 comments

This week sketch challenge @1hour1sketch is to Draw a Puffin, so here is my sketch using pencil, Pen and water color..

Ali radwani drawing sketch challenge 1hour1sketch pen pencil Coloring watercolor

Mushroom House

October 30, 2020 Leave a comment

Here is another attempt to improve my skills in sketching and Coloring using water color. Mushroom House.

Ali radwani drawing sketch challenge pen pencil Coloring watercolor

Another SketcheBook

October 13, 2020 Leave a comment

After my 6th Sketchebooks I start creating sketchebooks for my self, cutting the A4 papers, punch or glue them together then creating the cover and Sketch over it, other sketchbooks are purchased online then again I draw/sketch on it’s cover. Sample of what I made here ..

Sketch Books 12, 13 Here

Sketch Books 22, 23 Here

This one here is my 42nd Sketchebook Cover, I purchased this from AliExpress site, verey nice and small but the papers are very thin and the colors appear on the other side of the page, over all, they are doing the job.

More sketches are available in My Sketchbooks Page..

To The Freedom

August 3, 2020 Leave a comment

Another sketche I woke on with watercolor.

Follow me on Twitter

Coloring Some Sketches


Again I just pecked one of my sketches and color it using my galaxy Note9 mobile... Usually I use pencil then ink-ed the sketch, some time I color it with Watercolor or Promarker. Just to kill the time, I load one of them to the “Autodesk Sketchbook” App on my Galax Note9 and color it. The sketche is from my SKB 39 ..and here it is . .

More sketches on my-Sketch page.

Python: Factorial Digit Sum

April 25, 2019 Leave a comment



Python: Factorial Digit Sum
Problem 20 @ projectEuler


The Task: The task in projectEuler P20 is to get the sum of the digits in the number Factorial of 100!

Factorial NdefinitionThe factorial of a positive integer n, denoted by n!, is the product of all positive integers less than or equal to n. For example, 10! = 10 × 9 × … × 3 × 2 × 1 = 3628800.

Problem 20 is another easy problem in projectEuler, and we will write two functions to solve it. First one is a Factorial_digit_sum this one will return the factorial of a number. The second function will calculate the sum of all digits in a number N and we will call it sum_of_digits.

Clarification As long as i just start solving or posting my answers to projectEuler portal, i am selecting problems and not going through them in sequence, that’s way my posts are jumps between problems, so if i am posting the code to solve problem 144 (for example) that does’t meaning that i solve all problems before it.


print of solved screen:
















The Code:


#Python: Factorial Digit Sum
#Problem No.20 on projectEuler

def Factorial_digit_sum(num):

if (num == 0) :

return 1

else:

return num * Factorial_digit_sum(num-1)

num=100
fact =Factorial_digit_sum(100)
print fact,’is the Factorial of {}.’.format(num)

def sum_of_digits(dig):

t = 0

for each in dig:

t = t + int(each)

print ‘\nThe sum of your number is’,t

sum_of_digits(str(tot1))











Follow me on Twitter..