Running a function with the different functionalities at different times in Python [closed] - python

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm looking for a way to create a function that takes two args, time and operation and it does the operation at the given time as an argument. The script should be running on a server and it reads the data from a Redis-like database. I'm trying to find a way to do that avoid using any other frameworks or non-standard packages. Have any idea about that?

See the library https://github.com/dbader/schedule and this example https://github.com/dbader/schedule/blob/master/docs/examples.rst#run-a-job-once

Related

How can you use excel functions in python? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
I want to use excel function in python language. Are there any python libraries that allows you to use excel functions like convert and concatenate ?
I tried pyexcel and want more libraries like that.

How to run a function after another function is done in python [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I just learned python the other day, I was wondering how I can make the function vc_s2() wait for function vc_s1() to be done before running, and the same for vc_s3() with vc_s2()?
Thank you so much in advance!
from funtions import vc_s1, vc_s2, vc_s3
vc_s1()
vc_s2()
vc_s3()
Python runs chronologically, so it goes from top to bottom, as long as you have the 3 functions in order you should be fine.

What list functions are true functions in python? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
By 'true function' I mean a function that cannot be recreated with ordinary python logic. For example the append function could simply be done by creating a list one larger (through lens if you dont define that as a function) than that of the original, and then transfering the contents plus that one from a user input.
If I understand your question correctly, the answer is none. You can implement the entire specification of python, in python. It is self-hosting, as are many other languages.

What is the difference between python function and python module [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am a beginner of python i didn't found any difference between function and module.it is said that module stores code even after shutting the shell off rather than function.but when i tried to do so it didn't work for me.SO what is the big deal of using a module rather than function in the programming
In programming, function refers to a segment that groups code to perform a specific task.
A module is a software component or part of a program that contains one or more routines.
That means, functions are groups of code, and modules are groups of classes and functions.

How to execute a small part of C Code in Python? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have written a code in Python. There is a part in the code that does integration which has a very high computation time. But the same integration takes very less time in C. I want to run that part in C (that will take some input) and use the output to run the other code in python. In other words, I have a very large code in python, of which I want to run a small part in C. Please tell me how to do that.
You are looking for the ctypes library.

Categories

Resources