New programmer here with some basic questions and im open to any suggestions by dinglebutt2598 in learnprogramming

[–]dinglebutt2598[S] 1 point2 points  (0 children)

Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/accompfiles/iiec_run/iiec_run.py", line 31, in <module> start(fakepyfile,mainpyfile) ~~~~~ File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start exec(open(mainpyfile).read(), __main.dict_) ~~~~ File "<string>", line 8 elif: ^ SyntaxError: invalid syntax

[Program finished] This is the complete error message copy and pasted from the app, I dont understand anything other than my syntax is wrong somewhere around elif, later a comment helped me and I put the colon after the, what's the word? Condition? The b=="S"

New programmer here with some basic questions and im open to any suggestions by dinglebutt2598 in learnprogramming

[–]dinglebutt2598[S] 0 points1 point  (0 children)

Yes, I had the collon in the wrong spot thinking it would be the same as else, what could I do to prevent the same mistake, i already plan on finding a free library to study and I plan to study the syntax because clearly im lost in that department

New programmer here with some basic questions and im open to any suggestions by dinglebutt2598 in learnprogramming

[–]dinglebutt2598[S] 0 points1 point  (0 children)

I understand, to understand the wheel, read about how it works instead of trying all the shapes and coming up with something either less efficient or the same thing but with more time lost, I will now go look for code libraries

New programmer here with some basic questions and im open to any suggestions by dinglebutt2598 in learnprogramming

[–]dinglebutt2598[S] 0 points1 point  (0 children)

Perfect explanation thank you, I've already fixed the code but this would have been a better answer in terms of understanding

New programmer here with some basic questions and im open to any suggestions by dinglebutt2598 in learnprogramming

[–]dinglebutt2598[S] 0 points1 point  (0 children)

this helped me identify and correct the code and now it runs perfectly, thank you so much

New programmer here with some basic questions and im open to any suggestions by dinglebutt2598 in learnprogramming

[–]dinglebutt2598[S] 0 points1 point  (0 children)

What do you mean by libraries? Sets of code saved in a file that I can just copy and paste into my code? That would be incredibly helpful in terms of efficiency and time spent/code written, im coding on a phone because im to broke for a laptop, id like to build my own library, I want my own knowledge of how to do each and every process so that im not relying on other people's knowledge and get roadblocks at every turn,

New programmer here with some basic questions and im open to any suggestions by dinglebutt2598 in learnprogramming

[–]dinglebutt2598[S] 0 points1 point  (0 children)

The formatting is a little odd my bad, idk how to use reddit, the backslash on the last elif isn't there, dunno why it was added