Python:For Tutorial 1

From Progzoo
Revision as of 15:39, 31 October 2008 by 08003008 (talk | contribs) (missed a space in default example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Changing Limits

The for loop shown counts from 0 to 5.

Change the program so that it print numbers from 0 to 9


[Font] [Default] [Show] [Resize] [History] [Profile]

Ten times

The for loop shown prints 2 times i.

Change the program so that it prints 10 times i


[Font] [Default] [Show] [Resize] [History] [Profile]

Seven times

Print the numbers 0,7, 14, .. 42


[Font] [Default] [Show] [Resize] [History] [Profile]