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, got float instead".
Can I not use a float like pi in the range function? Or what might I be doing
wrong?
Also, I understand I may not be doing this in the most efficient way, but this
is more about learning how the range function and floats work than
about writing a super-efficient program.
Thanks for your time,
Joel C Knoll
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor