Hey guys,
My sister is having an issue with a piece of code that is coded in Python.
If you can solve the issue, compensation of $500,000 in-game currency will be given to you.
Deadline: Today, 4PM Pacific Standard Time - 6 Hours
More information available here:
https://stackoverflow.com/questions/3666...-pig-latin
Mind printing after you enter the file path? Just want to check something, aswell as showing us what is currently in the output file.
and mind pastebin, the full code?
P.s
You've got the code correct, but you arn't splitting the lines into single words. But I can't see what is happening untill the full code is released
That is her full code lol, whatever is on the stackoverflow link
Theres only 3 functions atm
Just has to be able to 1. Translate a text file into pig latin and have a line and word count.
If it helps all her teacher suggested was that instead of using .read() use a "for" loop to iterate through the file
I thought this was a PR at first before I read the actul post ;-; :c
Okay. I think I've got it. Tell me if it works as currently away at a mini-holiday working on a online python editor.
https://pastebin.com/Lp2ma7rd
After testing it further, found out that it'll only work for one line at a time. Just changing it around now to accept multiple lines,
Cool man thanks I'll test out a finished code when I get back to my hotel
Hmm. Having trouble accepting multiple lines at a time. For now if you can just put all the code in one line for example:
This is some test code that will convert into pig latin and I like etc
rather than
This is some test code that will convert
into pig latin
As that will break code ^^.
Burnett figured it out but thanks for trying!
Burnett is honestly such a machine. With the exception of maybe fortran or matlab I could give him any coding language I can think of and he'd know some of it, if not loads of it.
(Apr 17, 2016, 09:44 PM)Faustie Wrote: [ -> ]Burnett is honestly such a machine. With the exception of maybe fortran or matlab I could give him any coding language I can think of and he'd know some of it, if not loads of it.
I'm fairly sure he doesn't sleep, he just powers down.
Burnett's server computer of a brain is hosted at Area 51.