TORONTO KIDS COMPUTER CLUB | PMCA Saturday 18:30 Python Homework 21.06.26.
19673
post-template-default,single,single-post,postid-19673,single-format-standard,ajax_fade,page_not_loaded,,no_animation_on_touch,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

PMCA Saturday 18:30 Python Homework 21.06.26.

29 Jun PMCA Saturday 18:30 Python Homework 21.06.26.

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.