No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
I need to define a function that translates an sentence from present to past. A. put all words in lower case and omit all punctuation B. Plural and singular verbs should be recognized C. verbs ending in "y" change to "ied" D. verbs ending in "e" add "d" E. other … | |
I am having trouble with this problem, I need to enhance the red intensity of each pixel This is what i have [CODE]import cImage def makeRedScale(imageFile): myImageWindow = ImageWin("Image Processing",600,300) oldImage = fileImage(imageFile) oldImage.draw(myImageWindow) width = oldImage.getWidth() height = oldImage.getHeight() newImage = emptyImage (width,height) for row in range(height): for col … | |
I have to write a table called tempconv.txt, the table should have temps from -300-212 fah and the cel equivalents with steps of 10 or 20, presented in 2 columns.I keep getting a syntax error. I think i am having trouble with the opening and closing of the file. Thanks … | |
I am stuck on a problem with no idea how to start. I need to create a program that creates a file witha index that tells you which line of the file each word appears on. i Have this so far but i may be way off.[CODE]Import t = open(""),"r") … | |
The problem is to get a random list of numbers from a list This is what i have so far.[CODE]import random def numberShuffle(myList): sList = [] nNumbers = len(myList) for i in numbers: j = random.randint(i) return (sList) [/CODE] | |
I think i have the function for mean but i also need to figure out below mean. This what i have so far.[CODE]import math def mean(alist): belowMean = alist mean = sum(alist) / len(alist) if mean <= alist: belowMean = item return belowMean [/CODE] | |
I am having trouble trouble figuring out this problem any help would be appreciated. The problem wants you to change english into pirate language. Using the string split and join methods. This is what i have so far. [CODE]import copy def wordReplace (wordText): wordDict = { "hello" : "avast" , … |
The End.