struggling with these problems

2013-01-29 Thread su29090
1.Given that worst_offenders has been defined as a list with at least 6 elements, write a statement that defines lesser_offenders to be a new list that contains all the elements from index 5 of worst_offenders and beyond. Do not modify worst_offenders . I tried this but it didn't work: le

Re: Problem with importing in Python

2013-01-11 Thread su29090
On Friday, January 11, 2013 5:43:10 PM UTC-5, Dave Angel wrote: > On 01/11/2013 05:17 PM, su29090 wrote: > > > I'm trying to import a python file it keeps saying: > > > > > > ImportError: cannot import name Circle > > > > > > Here is t

Re: Problem with importing in Python

2013-01-11 Thread su29090
On Friday, January 11, 2013 5:27:21 PM UTC-5, Chris Angelico wrote: > On Sat, Jan 12, 2013 at 9:17 AM, su29090 wrote: > > > Circle.py > > > > > > class circle: > > > > > > from Circle import Circle > > > > Inside the Circle modul

Re: Problem with importing in Python

2013-01-11 Thread su29090
On Friday, January 11, 2013 5:25:24 PM UTC-5, Adnan Sadzak wrote: > Python is case sensitive. > > Circle and circle is not same. > > > > > > > /* sent from android */ > > On Jan 11, 2013 11:22 PM, "su29090" <129...@gmail.com> wrote: >

Problem with importing in Python

2013-01-11 Thread su29090
I'm trying to import a python file it keeps saying: ImportError: cannot import name Circle Here is the file I'm trying to import: Circle.py import math class circle: #Construct a circle object def __init__(self, radius = 1): self.radius = radius def getPerimeter(self):

Re: Problems on these two questions

2012-11-18 Thread su29090
On Sunday, November 18, 2012 8:52:35 PM UTC-5, su29090 wrote: > I did all of the other problems but I have issues with these: > > > > 1.Given a positive integer n , assign True to is_prime if n has no factors > other than 1 and itself. (Remember, m is a factor of

Problems on these two questions

2012-11-18 Thread su29090
I all of the other problems but I have issues with these: 1.Given a positive integer n , assign True to is_prime if n has no factors other than 1 and itself. (Remember, m is a factor of n if m divides n evenly.) 2.An arithmetic progression is a sequence of numbers in which the distan

Python questions help

2012-11-14 Thread su29090
I brought a python book and i'm a beginner and I read and tried to do the questions and I still get it wrong. How to create a program that reads an uspecified number of integers, that determines how many positive and negative values have been read, and computes the total and average of the inpu