Skip to content

Python while loop not working as intended

I don’t know how to get over this problem with while loop. So basically I want to return the number of zeros at the end of a number’s factorial. After the while loop runs only 1 time, it breaks; I don’t know why. Help would be very appreciated. Thanks! Answer After multiplying your value by …

Allow for multiple optional arguments in a Flask URL

So I have a flask URL, where there are 2 separate arguments. I want to run the same function with either no arguments, just the first or both. If no specific value is set, I want the unaccounted for arguments to get value None (as opposed to just not existing at all). My current solution involves using 3 @app…

Any easy way to transform a missing number sequence to its range?

Suppose I have a list that goes like : ”’ [1,2,3,4,9,10,11,20] ”’ I need the result to be like : ”’ [[4,9],[11,20]] ”’ I have defined a function that goes like this : Is there any other easier and efficient way to do it? I need to do this in the range of million…

How I can get channel members (Discord.py)

I need to get Only users of my channel, but I have not found a function that returns the desired result. There is a function to get all users of the bot: get_all_members(), but she’s not doing exactly what I need. I want get user nicknames. Help me find a solution to my problem. Answer Hm… I had t…