1. I need to make a program that creates a list that contains the first n perfect squares. All I know is that it starts with
n = int(raw_input("How many squares? "))
and ends with
An example of how this program should work is:
How many squares? 5
[1, 4, 9, 16, 25]
2. I need to create a function that takes a list as its only argument. It's needs to return a new list containing all (and only) the elements of 1 which are divisible by 2. The original list needs to remain the same.
Example of how this works is:
even_only([1, 3, 6, 10, 15, 21, 28]) should return
[6, 10, 28]
3. I need a function that translates a single English sentence into pig latin.
I honestly have no idea how to start any of these and any help would be greatly appreciated.