TORONTO KIDS COMPUTER CLUB | Aurora Saturday 14:30 Python Homework 10.12.
16542
post-template-default,single,single-post,postid-16542,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Aurora Saturday 14:30 Python Homework 10.12.

12 Oct Aurora Saturday 14:30 Python Homework 10.12.

Question 1:

Write a Python program to get the Fibonacci series between 0 to 100.
Note : The Fibonacci Sequence is the series of numbers, the first two numbers are 0 and 1 :
0, 1, 1, 2, 3, 5, 8, 13, 21, ….
Every next number is found by adding up the two numbers before it.

Expected Output :
0 1 1 2 3 5 8 13 21 34 55 89


Question 2:

Write a Python program that accepts a string and calculate the number of digits and letters.

Sample Input :
Python 3.2

Expected Output :
Letters: 6
Digits: 2

No Comments

Sorry, the comment form is closed at this time.