I'm having trouble with my programs for class.
Write a function that receives a list as its parameter and returns a list with the length of each element. In the main function print the returned list.
def elementLength(list): list = raw_input("enter list") return len(list) print elementLength(list)
What it does now is print the amount of characters. I think I know how to find the amount of characters in a word of a list but not one inputted by the user.
Write a function that receives three strings
and prints them in order from lowest to highest.
def strings(raw_input) strings = raw_input("Enter strings") import string return strings(raw_input) print string.uppercase(raw_input) print string.lowercase(raw_input) print string.digits(raw_input)
I've changed up this program a lot and the way it is now is pretty bad.