#๐ Im Brazilian. Who can help me?
30 messages ยท Page 1 of 1 (latest)
@brittle panther
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Well, what is the error? What's your questions?
Is the answer wrong? Are you getting an error?
Hm, yes, im bot finding The error in my code
What exactly is the problem?
Idk lol, my problem is Just: I cant Find the error in my code, when i play my code The app says: Code Error
And i have a question, what The Code async do?
Oh, it's just a dumb app then. The fairly obvious error that I see is your code doesn't have any indentation.
Oh ok, im mobile and i dont know what app i use for program
I don't know of any mobile apps (I used QPython, but it's not amazing). Learning on a mobile isn't ideal. You should at least use an app that gives proper error messages.
This should have given you an error message that said something like IndentationError: Expected block, and the line the error was on.
!e
def func():
print('This will fail')
:x: Your 3.13 eval job has completed with return code 1.
001 | File [35m"/home/main.py"[0m, line [35m2[0m
002 | [1;31mprint[0m('This will fail')
003 | [1;31m^^^^^[0m
004 | [1;35mIndentationError[0m: [35mexpected an indented block after function definition on line 1[0m
Like that
That should have been written as
def func():
print('This will not fail')
I can't imagine programming on a phone
I actually learned C++ on a phone, but I had a massive Samsung Note with a kickstand case, and a portable keyboard.
I mean that is functionally a mini pc at that point for all intents and purpose
Back to this code, note how you don't have an indentation after the def line. Statements like def and if expect an indented "block" after them. The indented lines are "inside" of the if/def. If you don't have any indented lines after a def, you're saying that the function doesn't contain any code, and that's not allowed by the syntax.
Ya. The tiny screen and poor tooling was a drag though, looking back.
C4Droid was decent for a phone app, but wasn't near as good as what I could have used on a PC.
Ive heard PyDroid i think mentioned more than a few times that people use, but no experience with it myself
If I need to run a small amount of python or ssh from my phone I just use termux and it works well enough
if you absolutely must run it in a mobile device, you might as well use something that runs in the web tbh
(whenever it's by running on the server or client-side WASM)
e.g. Google Colab
but yeah... I cannot recommend programming on a mobile device by any means
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.