@JacobRogers/

Python library (color,time,replit)

Python

No description

fork
loading
Files
  • main.py
  • poetry.lock
  • pyproject.toml
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#color library
from termcolor import colored

#red
print(colored("this text will be in red","red"))
#yellow
print(colored("\nthis text will be in yellow","yellow"))
#green
print(colored("\nthis text will be in green","green"))
#cyan
print(colored("\nthis text will be in cyan","cyan"))
#blue
print(colored("\nthis text will be in blue","blue"))
#magenta 
print(colored("\nthis text will be in magenta","magenta"))
#white
print(colored("\nthis is the default color of texts","white"))


#time library
import time
rest=time.sleep(4)

print("\nyou waited for 4 seconds")

def wait(amount):
  time.sleep(amount)

sleeping=int(input("\nenter a number from 1-10"))

wait(sleeping)

#%s symbol
print("you waited for %s seconds" %(sleeping))


#replit library
import replit

print("\nI will now clear the screen in:")
for i in range(3,0,-1):
  print(i)
  wait(1)
print("ok ready, here I go!!")
wait(1)

replit.clear()