I'm new to Python and to programming in general.
I'm trying to write a simple program to give the sine of each of a range of
numbers, including multiples of pi.
I keep getting a syntax error, highlighting my use of 2pi as an argument in the
range, saying something like "expected integers,
Hello,
I am new to programming and to Python. I've been using Python with IDLE on
Windows Vista for a few weeks now.
(And I'm loving it!) However, I'm thinking about switching to Ubuntu 10.10.
If I download Ubuntu, will I still be able to use the
IDLE environment? I am really quite fond
Given a range of integers (1,n), how might I go about printing them in the
following patterns:
1 2 3 4 ... n2 3 4 5 ... n 13 4 5 6 ... n 1 2
etc., e.g. for a "magic square". So that for the range (1,5) for example I
would get
1 2 3 42 3 4 13 4 1 24 1 2 3
I just cannot figure out how to make the