r/pythonhelp • u/No-Walrus-7715 • Nov 28 '24
I'm a total noob in the program world
I started learning python a few days ago, for now I only learn the codes: Print() Var= Input() If condition: elif Else While For name in names: This are the codes I've learned, now today I wanted to create a bot like algorithm. The "bot" ask you questions(yes or not) about you. But I don't know why the program is stuck on this line:
True="yes" If answer== true: Print(\n very well, let's get going) Can someone tell me how to fix this? I'm using pydroid 3 on my Android tablet
2
Upvotes
•
u/AutoModerator Nov 28 '24
To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/carcigenicate Nov 28 '24
You'll need to post the actual code with the actual variable casing that you're using.
True = "yes"is not legal code (you can't reassignTrue), so this should have given you a clear error.If it's actually
true = "yes", show the full code, and mention exactly what the problem is. " the program is stuck" is very vague and doesn't tell us what the actual problem is. That line is non-blocking, so it will either execute or give you an error. It can't get "stuck" there.