Skip to content

Tag: python

My function is terminating early – How to fix this?

What changes do I need to make to correct the logic and to allow it to run through the entire function? I am trying to call a function but each time the function gets to the line where the user enters either ‘all’ or ‘category’ it stops working. What I am trying to do is to allow the u…

What am I doing wrong in this simple Python code?

— My goal is to make a code where user has to enter temperature, then user has to enter unit (C or F), then I wanna show conversion to F if users type C and vice versa. what wrong here tell me please I am super new to python and learning it all day, thanks. Answer You might want to

Nextcord Fight Command Organization and Suggestions

I created an extremely basic fight command in Nextcord. The command is like so: Each character and weapon is assigned their own strength, speed, and defense stats. And the stats are all added up to find their final stat. Then it does the same for the enemy and it calculates the outcome. What I would like to d…