+ 1

First program question

I pasted in a module from pastebin. it gives me a syntax error halfway through a comment. I delete the comment as it's just a comment. syntax error in another spot....as if it is always an error based on number of characters into the file. any ideas?

26th Jul 2018, 8:06 PM
Ed Basquill
Ed Basquill - avatar
5 odpowiedzi
0
The code may need to run through a dirty markup cleaner, but there's no way of knowing exactly without seeing the code. You could put it into a SoloLearn Code Playground project and provide the link in your next post.
26th Jul 2018, 10:25 PM
Janning⭐
Janning⭐ - avatar
0
Excellent suggestion! The link is below--provided I did it right. Thank you. It is probably something obvious I am too green to see the mistake. Some background. I am working on a project to analyze infrasound. I found a website that collects it but I need to convert it to something I can do calculations with and the file format needs converted. I googled and found this code in python--trying to make it work https://code.sololearn.com/cdDOLHbwrtEt/#py
27th Jul 2018, 12:31 AM
Ed Basquill
Ed Basquill - avatar
0
Yeah... Do you still get the same errors after removing the line numbers? The code is importing a bunch of modules which only some of them are hosted by SoloLearn, so I'm afraid it is unlikely to work fully in the Code Playground.
27th Jul 2018, 4:54 AM
Janning⭐
Janning⭐ - avatar
0
The problem was the line numbers. I took them out and it gave me indent errors. I fixed those and now I have actual programming logic to consider and am on the path.Thanks
27th Jul 2018, 8:39 PM
Ed Basquill
Ed Basquill - avatar
0
Awesome! ☺👍
28th Jul 2018, 2:29 AM
Janning⭐
Janning⭐ - avatar