+ 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?
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.
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
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.
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
0
Awesome! ☺👍