#๐ how to fix this if he said no it should cancel it
39 messages ยท Page 1 of 1 (latest)
@golden cairn
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.
name = input("what is your username? ")
age = input("can you handle daily update? (yes/no) ")
if age.lower() == "yes":
print("Continuing...")
elif age.lower() == "no":
print("Cancelling...")
else:
print("Please enter yes or no.")
if age.lower() == "no":
print("Thank you for your survey")
answer = input("Do you want to continue? (yes/no)")
if answer.lower() == "yes":
print("Continuing...")
else:
print("Please select image of your account dps, gems, rank")
What should be cancelled what is issue here?
when they say no to the question it should cancel every single one
as in exit the program/script?
yes
sys.exit([arg])```
Raise a [`SystemExit`](https://docs.python.org/3/library/exceptions.html#SystemExit) exception, signaling an intention to exit the interpreter.
Yeah also exit() works too
lemme try
depends on context, so can be unreliable
Okay?
look at the example i gave
Good
and how do i send image on it
the bot just spits out the official python documentation
images of what and where?
like dropping a file of image or selecting file
for example i wanna drop this image in python
i don't understand what you mean
like this
on a web page?
aha, how would we know that you are doing a discord bot in python?
no i mean
a bot will use the python i made
anyways, i don't know anything about making discord bots
ima use website
so how to do it?
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.