51591/run-two-functions-at-different-times
Please refer the below code for your problem:
import threading def printit2(): threading.Timer(2.0, printit2).start() print ("2") def printit10(): threading.Timer(10.0, printit10).start() print ("10") printit2() printit10()
Hey,@Nikitha, Suppose you have multiple files say test_sample1.py, test_sample2.py. To ...READ MORE
You have to use the zip() function: for ...READ MORE
Like you are using row slicing, you ...READ MORE
there is sum() function as a built ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
You can simply the built-in function in ...READ MORE
different data type is being used. that ...READ MORE
Each choice is random, so it can ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.