Limelight Forums
Python - Resolved - Printable Version

+- Limelight Forums (https://limelightgaming.net/forums)
+-- Forum: Entertainment (https://limelightgaming.net/forums/forum-197.html)
+--- Forum: Hobbies (https://limelightgaming.net/forums/forum-207.html)
+--- Thread: Python - Resolved (/thread-9431.html)

Pages: 1 2


Python - Resolved - Nev - Apr 16, 2016

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/36666848/python-pig-latin




RE: Python - URGENT - PaulB - Apr 16, 2016

Mind printing after you enter the file path? Just want to check something, aswell as showing us what is currently in the output file.


RE: Python - URGENT - Nev - Apr 16, 2016

Text before - https://textuploader.com/5y011
Text after - https://textuploader.com/5y01f


RE: Python - URGENT - PaulB - Apr 16, 2016

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


RE: Python - URGENT - Nev - Apr 16, 2016

That is her full code lol, whatever is on the stackoverflow link


RE: Python - URGENT - Nev - Apr 16, 2016

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.


RE: Python - URGENT - Nev - Apr 16, 2016

If it helps all her teacher suggested was that instead of using .read() use a "for" loop to iterate through the file


RE: Python - URGENT - Taylor - Apr 16, 2016

I thought this was a PR at first before I read the actul post ;-; :c


RE: Python - URGENT - PaulB - Apr 16, 2016

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,


RE: Python - URGENT - Nev - Apr 16, 2016

Cool man thanks I'll test out a finished code when I get back to my hotel


RE: Python - URGENT - PaulB - Apr 16, 2016

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 ^^.


RE: Python - URGENT - Nev - Apr 16, 2016

Burnett figured it out but thanks for trying!


RE: Python - Resolved - Faustie - Apr 17, 2016

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.


RE: Python - Resolved - George - Apr 17, 2016

(Apr 17, 2016, 08: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.


RE: Python - Resolved - Brax - Apr 18, 2016

Burnett's server computer of a brain is hosted at Area 51.