daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Sep 18th, 2018 70 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. from time import sleep
  2. from threading import*
  3.  
  4. class Hello(Thread):
  5.     def run(self):
  6.         for i in range(500):
  7.             print('Hello')
  8.             sleep(1)
  9.  
  10. class hi(Thread):
  11.     def run(self):
  12.         for i in range(500):
  13.             print('hi')
  14.             sleep(1)
  15.  
  16.  
  17. t1 = Hello()
  18. t2 = hi()
  19.  
  20. t1.start()
  21. sleep(0.2)
  22. t2.start()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top